Skip to content

Commit

Permalink
Merge pull request #557 from sime/2.1
Browse files Browse the repository at this point in the history
array_merge breaks CakeSchema column type change 

Fixes #2672
  • Loading branch information
markstory committed Mar 13, 2012
2 parents 68eeee8 + 791cc1a commit 5033fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/CakeSchema.php
Expand Up @@ -484,7 +484,7 @@ public function compare($old, $new = null) {
if (!empty($old[$table][$field])) {
$diff = $this->_arrayDiffAssoc($value, $old[$table][$field]);
if (!empty($diff) && $field !== 'indexes' && $field !== 'tableParameters') {
$tables[$table]['change'][$field] = array_merge($old[$table][$field], $diff);
$tables[$table]['change'][$field] = $value;
}
}

Expand Down

0 comments on commit 5033fb6

Please sign in to comment.