Fix bug when defaultValue is null

This commit is contained in:
Greyscale 2024-06-10 06:05:45 +02:00
parent aa9c19e6c5
commit 780a721492
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -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);