Add migration script to add optional submitter_name column

This commit is contained in:
sudoer777 2021-12-06 10:39:24 -07:00
parent 4e8e27113f
commit 5abc125a52

15
database/migrations/3.sql Normal file
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;