Fix bug when defaultValue is null
This commit is contained in:
parent
aa9c19e6c5
commit
780a721492
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ class Column extends Entity
|
|||
$this->setDefaultValueIsLiteral(true);
|
||||
} elseif (is_numeric($defaultValue)) {
|
||||
$this->setDefaultValueIsLiteral(true);
|
||||
} elseif (false !== stripos($defaultValue, '()')) {
|
||||
} elseif ($defaultValue != null && false !== stripos($defaultValue, '()')) {
|
||||
$this->setDefaultValueIsLiteral(false);
|
||||
} else {
|
||||
$this->setDefaultValueIsLiteral(true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue