diff --git a/database/migrations/3.sql b/database/migrations/3.sql new file mode 100644 index 0000000..117779a --- /dev/null +++ b/database/migrations/3.sql @@ -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; \ No newline at end of file