In remove categories down migration, add default for category

This commit is contained in:
Felix Ableitner 2021-02-25 16:16:02 +01:00
parent 3141ad31de
commit 72783edb17

View file

@ -31,4 +31,4 @@ insert into category (name) values
('Meta'), ('Meta'),
('Other'); ('Other');
ALTER TABLE community ADD category_id int references category on update cascade on delete cascade not null; ALTER TABLE community ADD category_id int references category on update cascade on delete cascade not null default 1;