Commit 9fdce97b authored by beberlei's avatar beberlei

[2.0] DDC-169 - Fix bug in Comparator

parent 34119d39
...@@ -203,7 +203,7 @@ class Comparator ...@@ -203,7 +203,7 @@ class Comparator
} }
foreach ($table1Indexes AS $index1Name => $index1Definition) { foreach ($table1Indexes AS $index1Name => $index1Definition) {
$tableDifferences->removedIndexes[$index1Name] = true; $tableDifferences->removedIndexes[$index1Name] = $index1Definition;
$changes++; $changes++;
} }
......
...@@ -233,7 +233,12 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase ...@@ -233,7 +233,12 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
array ( array (
'bugdb' => new TableDiff( 'bugdb', array(), array(), array(), array(), array(), 'bugdb' => new TableDiff( 'bugdb', array(), array(), array(), array(), array(),
array ( array (
'primary' => true 'primary' => new Index('primary',
array(
'integerfield1'
),
true
)
) )
), ),
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment