Browse Source

Fiing CakeSchema so it runs without errors on Sqlsrv

Jose Lorenzo Rodriguez 14 years ago
parent
commit
f4aeb514e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Model/CakeSchema.php

+ 1 - 1
lib/Cake/Model/CakeSchema.php

@@ -474,7 +474,7 @@ class CakeSchema extends Object {
 			}
 
 			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);