default value fix
This commit is contained in:
parent
e48ea51a5a
commit
1cb87213d9
@ -237,7 +237,7 @@ class MySQL extends SQL {
|
|||||||
|
|
||||||
$notNull = $column->notNull() ? " NOT NULL" : "";
|
$notNull = $column->notNull() ? " NOT NULL" : "";
|
||||||
if (!is_null($defaultValue) || !$column->notNull()) {
|
if (!is_null($defaultValue) || !$column->notNull()) {
|
||||||
$defaultValue = " DEFAULT " . $this->getValueDefinition($column->getDefaultValue());
|
$defaultValue = " DEFAULT " . $this->getValueDefinition($defaultValue);
|
||||||
} else {
|
} else {
|
||||||
$defaultValue = "";
|
$defaultValue = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user