修复 表生成 nullable 错误
This commit is contained in:
parent
ddb2e0aee1
commit
66e2ea5141
@ -77,13 +77,12 @@ class SQL extends Factory
|
||||
$tableColumn->setUnsigned();
|
||||
}
|
||||
|
||||
|
||||
if ($column['comment']) {
|
||||
$tableColumn->setComment($column['comment']);
|
||||
}
|
||||
|
||||
if (! $this->doNotNeedDefaultValueType($column['type'])) {
|
||||
$tableColumn->setDefault($column['default']);
|
||||
$tableColumn->setDefault($column['nullable'] ? null : $column['default']);
|
||||
}
|
||||
|
||||
$tableColumns[] = $tableColumn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user