default value fix
This commit is contained in:
1 parent
e48ea51a5a
commit
1cb87213d9
1 file changed
+1
-1
@@ -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 = "";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user