Affects Version/s: None
Fix Version/s: None
Component/s: Core - MySql
When reading a MyISAM MySQL database model from the database, DdlUtils will read in Index instead of a ForeignKey.
As a result of this, DdlUtils suggests to remove the index and create the foreign key. After applying this change, DdlUtils will still not see the ForeignKey and thus suggests the same change all over again.
We work around this by looking for all indexes in a table. If we find an equally named foreign key in our "wanted" model, we remove the index and add a foreign key:
After this transformation, DdlUtils will not suggest removing the index and adding the foreign key.
If this something that could be added to DdlUtils proper in some way?
Here's the DB I used for testing this: