From 72783edb1756f19405e26f5fa591bacd5548a61c Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Thu, 25 Feb 2021 16:16:02 +0100 Subject: [PATCH] In remove categories down migration, add default for category --- migrations/2021-02-25-112959_remove-categories/down.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/2021-02-25-112959_remove-categories/down.sql b/migrations/2021-02-25-112959_remove-categories/down.sql index 9f1837b42..35386f795 100644 --- a/migrations/2021-02-25-112959_remove-categories/down.sql +++ b/migrations/2021-02-25-112959_remove-categories/down.sql @@ -31,4 +31,4 @@ insert into category (name) values ('Meta'), ('Other'); -ALTER TABLE community ADD category_id int references category on update cascade on delete cascade not null; \ No newline at end of file +ALTER TABLE community ADD category_id int references category on update cascade on delete cascade not null default 1; \ No newline at end of file