by beachy · 4y ago · 0 comments
1) normalise the database (fold these ugly add-on tables as columns in the parent table, with suitable null constraints, then drop the add-on table).
2) Use views to add the add-on tables (now views) back in again.
3) Continue running the old application code against the views, which present the old, ugly schema.
4) Simultaneously write the new code against the normalised core tables.
No way to trigger a DELETE from a view right ? How would you approach this ?
You can even do things like prevent the app from deleting things unless the functions are used and prevent poor development practices in the process.