|
|
|
|
|
by jtriangle
934 days ago
|
|
So how do you deal with orphaned child rows when reverting? I assume it's up to your users to deal with them or not?
This very much seems like a clever automation for chosing when to care about foreign key constraints and not outright enforcement |
|
It's worth noting that MySQL has no problem with this kind of situation. It never cares about the existence of orphaned rows. It only cares about not letting you creating them in the first place, and it cares about cleaning up. But it doesn't blow up if orphaned rows do exist. They will just become ghosts.