mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix formatting.
This commit is contained in:
parent
4ec195f9c8
commit
32f6b96060
1 changed files with 2 additions and 1 deletions
|
@ -353,7 +353,8 @@ class Mysql extends DboSource {
|
||||||
$fields[$column->Field]['unsigned'] = $this->_unsigned($column->Type);
|
$fields[$column->Field]['unsigned'] = $this->_unsigned($column->Type);
|
||||||
}
|
}
|
||||||
if (in_array($fields[$column->Field]['type'], array('timestamp', 'datetime')) &&
|
if (in_array($fields[$column->Field]['type'], array('timestamp', 'datetime')) &&
|
||||||
in_array(strtoupper($column->Default), array('CURRENT_TIMESTAMP', 'CURRENT_TIMESTAMP()'))) {
|
in_array(strtoupper($column->Default), array('CURRENT_TIMESTAMP', 'CURRENT_TIMESTAMP()'))
|
||||||
|
) {
|
||||||
$fields[$column->Field]['default'] = null;
|
$fields[$column->Field]['default'] = null;
|
||||||
}
|
}
|
||||||
if (!empty($column->Key) && isset($this->index[$column->Key])) {
|
if (!empty($column->Key) && isset($this->index[$column->Key])) {
|
||||||
|
|
Loading…
Reference in a new issue