aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/migrations
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-02-08 20:13:24 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-02-08 20:13:24 +0100
commitfc103599974240cbd5abcfbf2a6f93678e57c2ee (patch)
treeeb4c62696ded0f5beffd83c42efc475b81882b57 /planetwars-server/migrations
parent69f33763ab7ff5876cff23fb90cfd2497b3fe371 (diff)
downloadplanetwars.dev-fc103599974240cbd5abcfbf2a6f93678e57c2ee.tar.xz
planetwars.dev-fc103599974240cbd5abcfbf2a6f93678e57c2ee.zip
store demo matches in database
Diffstat (limited to 'planetwars-server/migrations')
-rw-r--r--planetwars-server/migrations/2021-12-13-145111_users/down.sql2
-rw-r--r--planetwars-server/migrations/2022-01-02-105610_matches/up.sql2
2 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/migrations/2021-12-13-145111_users/down.sql b/planetwars-server/migrations/2021-12-13-145111_users/down.sql
index 49285a1..b08a12c 100644
--- a/planetwars-server/migrations/2021-12-13-145111_users/down.sql
+++ b/planetwars-server/migrations/2021-12-13-145111_users/down.sql
@@ -1,2 +1,2 @@
-DROP INDEX users_username_index
+DROP INDEX users_username_index;
DROP TABLE users; \ No newline at end of file
diff --git a/planetwars-server/migrations/2022-01-02-105610_matches/up.sql b/planetwars-server/migrations/2022-01-02-105610_matches/up.sql
index ace13fd..28db0df 100644
--- a/planetwars-server/migrations/2022-01-02-105610_matches/up.sql
+++ b/planetwars-server/migrations/2022-01-02-105610_matches/up.sql
@@ -1,4 +1,4 @@
-CREATE TYPE match_state AS ENUM ('playing', 'ended');
+CREATE TYPE match_state AS ENUM ('playing', 'finished');
CREATE TABLE matches (
id SERIAL PRIMARY KEY NOT NULL,