From: Felix Ableitner Date: Thu, 25 Feb 2021 15:16:02 +0000 (+0100) Subject: In remove categories down migration, add default for category X-Git-Url: http://these/git/%22https:/nerdica.net/%7B%24%7B%60data:application/static/%24%7B%60data:application/%7Bthis.imageSrc.unwrap%28%29%7D?a=commitdiff_plain;h=72783edb1756f19405e26f5fa591bacd5548a61c;p=lemmy.git In remove categories down migration, add default for category --- diff --git a/migrations/2021-02-25-112959_remove-categories/down.sql b/migrations/2021-02-25-112959_remove-categories/down.sql index 9f1837b4..35386f79 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