News for hackers. Stuff that matters.
Re:We lost 54k GitHub stars by zach_garwood on Friday April 15, 2022 @12:27AM (#31036606)
> I assume that the cascading done on GitHub would be done on a FK constraint, but I'm not really sure how you'd do a "cascading soft delete" without making some kind of manual cascading logic?

I'm not at a terminal, so I can't check it out, but could you make a compound foreign key with the soft delete column and use the on update cascade? Something like `alter table stars add foreign key (repo_id, is_deleted) references repos (id, is_deleted) on update cascade;`

There are no comments on this comment yet.