default value fix

This commit is contained in:
Roman Hergenreder 2020-06-27 22:53:36 +02:00
parent e48ea51a5a
commit 1cb87213d9

@ -237,7 +237,7 @@ class MySQL extends SQL {
$notNull = $column->notNull() ? " NOT NULL" : "";
if (!is_null($defaultValue) || !$column->notNull()) {
$defaultValue = " DEFAULT " . $this->getValueDefinition($column->getDefaultValue());
$defaultValue = " DEFAULT " . $this->getValueDefinition($defaultValue);
} else {
$defaultValue = "";
}