In remove categories down migration, add default for category
This commit is contained in:
parent
3141ad31de
commit
72783edb17
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
ALTER TABLE community ADD category_id int references category on update cascade on delete cascade not null default 1;
|
Loading…
Reference in a new issue