Skip to content

Commit

Permalink
Add sorting of coop maps
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Jun 30, 2022
1 parent f23eb77 commit 9581c88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions migrations/V125__coop_scenario.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
create table coop_scenario
(
id mediumint(8) unsigned not null auto_increment,
`order` int not null,
`order` mediumint(8) unsigned not null,
name varchar(255) not null,
description text null,
type enum ('SC', 'SCFA', 'CUSTOM') default 'CUSTOM' not null comment 'SC=vanilla Supreme Commander campaign, SCFA=Forged Alliance campaign, CUSTOM=community campaign',
Expand All @@ -11,10 +11,9 @@ create table coop_scenario
)
comment 'A scenario is the parent of one or multiple related missions.';


alter table coop_map
modify type tinyint unsigned not null comment 'deprecated, lookup parent scenario instead',
add `order` mediumint(8) unsigned null,
add scenario_id mediumint(8) unsigned null comment 'TODO: Make not null after migration',
add constraint coop_map_coop_scenario_id_fk
foreign key (scenario_id) references coop_scenario (id);

0 comments on commit 9581c88

Please sign in to comment.