• Sergi de Pablos's avatar
    Fix dropping foreign key multiple times with test · 59bea6bc
    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.
    59bea6bc
Name
Last commit
Last update
bin Loading commit data...
docs Loading commit data...
lib Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
UPGRADE Loading commit data...
build.properties Loading commit data...
build.xml Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...
run-all.sh Loading commit data...