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