mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fiing CakeSchema so it runs without errors on Sqlsrv
This commit is contained in:
parent
cdc81333e8
commit
f4aeb514e3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue