Permalink
Browse files

Fiing CakeSchema so it runs without errors on Sqlsrv

  • Loading branch information...
1 parent cdc8133 commit f4aeb514e3c4adbe44f2c9cd378cef0dc32ce0d4 @lorenzo lorenzo committed Jun 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/CakeSchema.php
@@ -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);

0 comments on commit f4aeb51

Please sign in to comment.