From fc103599974240cbd5abcfbf2a6f93678e57c2ee Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 8 Feb 2022 20:13:24 +0100 Subject: store demo matches in database --- planetwars-server/migrations/2021-12-13-145111_users/down.sql | 2 +- planetwars-server/migrations/2022-01-02-105610_matches/up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'planetwars-server/migrations') 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, -- cgit v1.2.3