mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
array_merge inappropriate for certain column types. e.g. Switching from VARCHAR(45) to DATETIME will carry length, collate and charset properties
This commit is contained in:
parent
edb582944c
commit
791cc1a657
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ class CakeSchema extends Object {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue