Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enum value for decapitation game mode #316

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions migrations/V135__add_decapitation_victory_condition.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ALTER TABLE game_stats
MODIFY `gameType` enum(
'0',
'1',
'2',
'3',
'DEMORALIZATION',
'DOMINATION',
'ERADICATION',
'SANDBOX',
'DECAPITATION'
Brutus5000 marked this conversation as resolved.
Show resolved Hide resolved
) 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;