[2.0] DDC-169 - Fix bug in Comparator
This commit is contained in:
parent
34119d3925
commit
9fdce97b97
2 changed files with 7 additions and 2 deletions
|
@ -203,7 +203,7 @@ class Comparator
|
|||
}
|
||||
|
||||
foreach ($table1Indexes AS $index1Name => $index1Definition) {
|
||||
$tableDifferences->removedIndexes[$index1Name] = true;
|
||||
$tableDifferences->removedIndexes[$index1Name] = $index1Definition;
|
||||
$changes++;
|
||||
}
|
||||
|
||||
|
|
|
@ -233,7 +233,12 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
|
|||
array (
|
||||
'bugdb' => new TableDiff( 'bugdb', array(), array(), array(), array(), array(),
|
||||
array (
|
||||
'primary' => true
|
||||
'primary' => new Index('primary',
|
||||
array(
|
||||
'integerfield1'
|
||||
),
|
||||
true
|
||||
)
|
||||
)
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue