From 4c2ae1527e51de4837fc02fb3966699fb4bb938f Mon Sep 17 00:00:00 2001 From: Askaholic Date: Fri, 12 Jan 2024 00:43:07 -0500 Subject: [PATCH] Add enum value for decapitation game mode --- ...35__add_decapitation_victory_condition.sql | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 migrations/V135__add_decapitation_victory_condition.sql diff --git a/migrations/V135__add_decapitation_victory_condition.sql b/migrations/V135__add_decapitation_victory_condition.sql new file mode 100644 index 00000000..e2381190 --- /dev/null +++ b/migrations/V135__add_decapitation_victory_condition.sql @@ -0,0 +1,26 @@ +ALTER TABLE game_stats + MODIFY `gameType` enum( + '0', + '1', + '2', + '3', + 'DEMORALIZATION', + 'DOMINATION', + 'ERADICATION', + 'SANDBOX', + 'DECAPITATION' + ) NOT NULL; + +UPDATE game_stats set `gameType` = 'DEMORALIZATION' where `gameType` = '0'; +UPDATE game_stats set `gameType` = 'DOMINATION' where `gameType` = '1'; +UPDATE game_stats set `gameType` = 'ERADICATION' where `gameType` = '2'; +UPDATE game_stats set `gameType` = 'DECAPITATION' where `gameType` = '3'; + +ALTER TABLE game_stats + MODIFY `gameType` enum( + 'DEMORALIZATION', + 'DOMINATION', + 'ERADICATION', + 'SANDBOX', + 'DECAPITATION' + ) NOT NULL;