-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility for new foreign key constraints
- Loading branch information
1 parent
3321f1c
commit 81295e6
Showing
4 changed files
with
50 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
DELETE FROM game_stats; | ||
DELETE FROM game_featuredMods; | ||
DELETE | ||
FROM matchmaker_queue_map_pool; | ||
DELETE | ||
FROM matchmaker_queue; | ||
DELETE | ||
FROM game_stats; | ||
DELETE | ||
FROM game_featuredMods; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
DELETE FROM map_version; | ||
DELETE FROM map; | ||
DELETE | ||
FROM map_version_reviews_summary; | ||
DELETE | ||
FROM map_version_review; | ||
DELETE | ||
FROM map_reviews_summary; | ||
DELETE | ||
FROM map_pool_map_version; | ||
DELETE | ||
FROM map_version; | ||
DELETE | ||
FROM map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
DELETE FROM game_stats; | ||
DELETE FROM game_featuredMods; | ||
DELETE | ||
FROM matchmaker_queue_map_pool; | ||
DELETE | ||
FROM matchmaker_queue; | ||
DELETE | ||
FROM game_stats; | ||
DELETE | ||
FROM game_featuredMods; | ||
|
||
INSERT INTO game_featuredMods (id, gamemod, name, description, publish, git_url, git_branch, file_extension, allow_override) | ||
VALUES | ||
(1, 'faf', 'FAF', 'Forged Alliance Forever', 1, 'https://github.com/FAForever/fa.git', 'deploy/faf', 'nx2', FALSE), | ||
(6, 'ladder1v1', 'FAF', 'Ladder games', 1, 'https://github.com/FAForever/fa.git', 'deploy/faf', 'nx2', TRUE), | ||
(25, 'coop', 'Coop', 'Multiplayer campaign games', 1, 'https://github.com/FAForever/fa-coop.git', 'master', 'cop', | ||
TRUE); | ||
INSERT INTO game_featuredMods (id, gamemod, name, description, publish, git_url, git_branch, file_extension, | ||
allow_override) | ||
VALUES (1, 'faf', 'FAF', 'Forged Alliance Forever', 1, 'https://github.com/FAForever/fa.git', 'deploy/faf', 'nx2', | ||
FALSE), | ||
(6, 'ladder1v1', 'FAF', 'Ladder games', 1, 'https://github.com/FAForever/fa.git', 'deploy/faf', 'nx2', TRUE), | ||
(25, 'coop', 'Coop', 'Multiplayer campaign games', 1, 'https://github.com/FAForever/fa-coop.git', 'master', | ||
'cop', | ||
TRUE); | ||
|
||
INSERT INTO game_stats (id, startTime, gameName, gameType, gameMod, `host`, mapId, validity) VALUES | ||
(1, NOW(), 'Test game', '0', 6, 1, 1, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
DELETE FROM map_version; | ||
DELETE FROM map; | ||
DELETE | ||
FROM map_version_reviews_summary; | ||
DELETE | ||
FROM map_version_review; | ||
DELETE | ||
FROM map_reviews_summary; | ||
DELETE | ||
FROM map_pool_map_version; | ||
DELETE | ||
FROM map_version; | ||
DELETE | ||
FROM map; | ||
|
||
INSERT INTO map (id, display_name, map_type, battle_type, author) VALUES (1, 'display name', 'mtype', 'btype', 1); | ||
INSERT INTO map (id, display_name, map_type, battle_type, author) | ||
VALUES (1, 'display name', 'mtype', 'btype', 1); | ||
INSERT INTO map_version (id, description, max_players, width, height, version, filename, map_id, hidden, ranked) | ||
VALUES (1, 'des', 2, 2, 2, 1, 'map/ghb.zip', 1, 0, 1); |