aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps
diff options
context:
space:
mode:
Diffstat (limited to 'planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps')
-rw-r--r--planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/down.sql1
-rw-r--r--planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/up.sql1
2 files changed, 2 insertions, 0 deletions
diff --git a/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/down.sql b/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/down.sql
new file mode 100644
index 0000000..1165b38
--- /dev/null
+++ b/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/down.sql
@@ -0,0 +1 @@
+ALTER TABLE maps DROP COLUMN is_ranked;
diff --git a/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/up.sql b/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/up.sql
new file mode 100644
index 0000000..88abfac
--- /dev/null
+++ b/planetwars-server/migrations/2022-11-21-135622_add_is_ranked_to_maps/up.sql
@@ -0,0 +1 @@
+ALTER TABLE maps ADD COLUMN is_ranked BOOLEAN NOT NULL DEFAULT FALSE;