From 4bb3cad43e1f9e126ab93afdcd203041c146469b Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 11 Mar 2019 02:04:07 -0300 Subject: [PATCH] migration.scripts: add NOT NULL and DEFAULT to guilds.features --- manage/cmd/migration/scripts/12_remove_features_table.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage/cmd/migration/scripts/12_remove_features_table.sql b/manage/cmd/migration/scripts/12_remove_features_table.sql index 5f37056..7c8df16 100644 --- a/manage/cmd/migration/scripts/12_remove_features_table.sql +++ b/manage/cmd/migration/scripts/12_remove_features_table.sql @@ -1,4 +1,5 @@ DROP TABLE guild_features; DROP TABLE features; -ALTER TABLE guilds ADD COLUMN features text[]; +-- this should do the trick +ALTER TABLE guilds ADD COLUMN features text[] NOT NULL DEFAULT '{}';