Skip to content

Commit

Permalink
Fiing CakeSchema so it runs without errors on Sqlsrv
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Jun 21, 2011
1 parent cdc8133 commit f4aeb51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/CakeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public function compare($old, $new = null) {
}

foreach ($fields as $field => $value) {
if (isset($old[$table][$field])) {
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);
Expand Down

0 comments on commit f4aeb51

Please sign in to comment.