I've got a database which hasn't been very well designed. For example, there are DATETIME
fields (not null
) which have values like 0000-00-00 00:00:00
.
I want to turn on STRICT_TRANS_TABLES
mode. The database functions but the apps often fail with broken queries (often INSERT
/UDPATE
)
Are there any tools to recommend what should be fixed by looking at the data in tables & structure?
Specifically looking for:
- Built in warnings (if any?)
- Asking the mysql server if it thinks there is anything wrong with the structure & table data