This code snippet easily bring the database into inconsistent state
posted 3 years ago
If saveAuth is okay, but suddenly the power fails, and updateCustomerAuth
can't proceed, the database is in an inconsistent state.
I tried to use foreign key constraint with a cascade update,
and don't know if that works.