Fixed
Details
Assignee
Chris CranfordChris CranfordReporter
Milo van der ZeeMilo van der ZeeLabels
Original estimate
Time tracking
No time logged4h remainingComponents
Fix versions
Priority
Major
Details
Details
Assignee
Chris Cranford
Chris CranfordReporter
Milo van der Zee
Milo van der ZeeLabels
Original estimate
Time tracking
No time logged4h remaining
Components
Fix versions
Priority
Created July 6, 2016 at 4:24 PM
Updated August 20, 2021 at 9:25 AM
Resolved June 7, 2017 at 5:13 PM
When hbm2ddl.auto is set to update all tables and keys are checked to see if changes are needed. The algorith by which the names of the foreign keys are generated changed the last couple of versions. Now the update thinks the foreign keys don't exist and creates them again.
By changing findMatchingForeignKey in SchemaMigratorImpl to check the actual reference and fields that could be a lot smarter. So don't purely match on keyname but instead on the field and the referenced table with the referenced field.