From ee5c67c092acc57a6ef2b8f7934ba827df43add6 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 30 Jul 2022 17:03:32 +0200 Subject: add is_public to matches --- .../migrations/2022-07-30-145155_add_public_to_matches/down.sql | 1 + .../migrations/2022-07-30-145155_add_public_to_matches/up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/down.sql create mode 100644 planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/up.sql (limited to 'planetwars-server/migrations') diff --git a/planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/down.sql b/planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/down.sql new file mode 100644 index 0000000..7a0c0bf --- /dev/null +++ b/planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/down.sql @@ -0,0 +1 @@ +ALTER TABLE matches DROP COLUMN is_public; diff --git a/planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/up.sql b/planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/up.sql new file mode 100644 index 0000000..714de8c --- /dev/null +++ b/planetwars-server/migrations/2022-07-30-145155_add_public_to_matches/up.sql @@ -0,0 +1 @@ +ALTER TABLE matches ADD COLUMN is_public boolean NOT NULL DEFAULT false; -- cgit v1.2.3