by CSSer · 3y ago · 0 comments
Is it silly to suggest that laws like these could make cascade on delete a whole lot more commonplace?
If their user now brings up "deleted user 12345", you've done your job and deleted the data they cared about.
Instead of asking "how can rows in my posts table reference a deleted row in the users table?" ask "how can I show posts by deleted users?"
And that's a business requirement. Either you delete the post, or you delete the post's author link, or you delete the post's author link and content. Find out which one, and design and implement it.