News for hackers. Stuff that matters.
Re:Soft deletion probably isn't worth it by mlyle on Tuesday July 19, 2022 @08:08PM (#32159643)
> Seems unfortunate to miss out on all the referential integrity benefits of a serious database when hiring standards, training and code reviews should all be preventing idiotic changes.

If you don't use ON DELETE CASCADE, the actual foreign key constraint gives you a meaningful error-- that you need to delete some stuff to have referential integrity.

ON DELETE CASCADE --- you're telling it "eh, if you need to delete some stuff to avoid an error, go ahead, don't bother me, do what I mean".

There are no comments on this comment yet.