• Sergi de Pablos's avatar
    Fix dropping foreign key multiple times with test · 04208c6a
    Sergi de Pablos authored
    In some cases the Comparator class returns multiple drops for the same foreign key.
    Specifically, in case you have two tables, A & B, with A having a foreign key FK
    referencing B, if you drop table B, the resulting diff shows this FK twice,
    once on the diff->orphanedForeignKeys array as we're deleting B, and another on
    the diff->changedTables array as table A is also being modified. As a result of this you
    get the DROP FOREIGN KEY instruction twice in the final SQL.
    04208c6a
Name
Last commit
Last update
..
Cache Loading commit data...
Connections Loading commit data...
Driver Loading commit data...
Event Loading commit data...
Id Loading commit data...
Logging Loading commit data...
Platforms Loading commit data...
Portability Loading commit data...
Query Loading commit data...
Schema Loading commit data...
Sharding Loading commit data...
Tools/Console Loading commit data...
Types Loading commit data...
Configuration.php Loading commit data...
Connection.php Loading commit data...
ConnectionException.php Loading commit data...
DBALException.php Loading commit data...
Driver.php Loading commit data...
DriverManager.php Loading commit data...
Events.php Loading commit data...
LockMode.php Loading commit data...
README.markdown Loading commit data...
SQLParserUtils.php Loading commit data...
Statement.php Loading commit data...
Version.php Loading commit data...