Add migration script to add optional submitter_name column

main
sudoer777 2021-12-06 10:39:24 -07:00
parent 4e8e27113f
commit 5abc125a52
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
/* ADD OPTIONAL SUBMITTER NAME COLUMN IN GAMES TABLE */
BEGIN;
ALTER TABLE scores.games ALTER COLUMN submitter_id DROP NOT NULL;
ALTER TABLE scores.games
ADD COLUMN submitter_name TEXT;
UPDATE metadata
SET value = '3'
WHERE property = 'latest_migration';
COMMIT;