1
0
Fork 0
mirror of synced 2025-04-01 12:26:11 +03:00

[2.0] DDC-169 - Fix bug in Comparator

This commit is contained in:
beberlei 2009-12-06 13:06:09 +00:00
parent 34119d3925
commit 9fdce97b97
2 changed files with 7 additions and 2 deletions

View file

@ -203,7 +203,7 @@ class Comparator
}
foreach ($table1Indexes AS $index1Name => $index1Definition) {
$tableDifferences->removedIndexes[$index1Name] = true;
$tableDifferences->removedIndexes[$index1Name] = $index1Definition;
$changes++;
}

View file

@ -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
)
)
),
)