From 54b2ad1beff561f598011cf0cafd4348b99fca6a Mon Sep 17 00:00:00 2001 From: ewezy Date: Fri, 1 Mar 2024 14:04:27 +0800 Subject: [PATCH] Add up and down db migration scripts --- db-migrations/37_environments_add_max_allowed_replicas.down.sql | 1 + db-migrations/37_environments_add_max_allowed_replicas.up.sql | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 db-migrations/37_environments_add_max_allowed_replicas.down.sql create mode 100644 db-migrations/37_environments_add_max_allowed_replicas.up.sql diff --git a/db-migrations/37_environments_add_max_allowed_replicas.down.sql b/db-migrations/37_environments_add_max_allowed_replicas.down.sql new file mode 100644 index 000000000..d268037ad --- /dev/null +++ b/db-migrations/37_environments_add_max_allowed_replicas.down.sql @@ -0,0 +1 @@ +ALTER TABLE environments DROP COLUMN max_allowed_replica; diff --git a/db-migrations/37_environments_add_max_allowed_replicas.up.sql b/db-migrations/37_environments_add_max_allowed_replicas.up.sql new file mode 100644 index 000000000..5f76a904b --- /dev/null +++ b/db-migrations/37_environments_add_max_allowed_replicas.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE environments +ADD COLUMN max_allowed_replica int;