Add migration script to add optional submitter_name column
parent
4e8e27113f
commit
5abc125a52
|
@ -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;
|
Reference in New Issue