ALTER TABLE community ADD category_id int references category on update cascade on delete cascade not null;
Did you test this? I'd be surprised if it works since there's not a default value given (should probably be just 1). Its unavoidable but we lose all category info on the tables with this.
I did (with diesel migration revert/run), but maybe I tested it wrong. Will add the default you suggested.
mmk, I'll test this locally too.
No due date set.
This pull request currently doesn't have any dependencies.
Deleting a branch is permanent. It CANNOT be undone. Continue?