Commit 40c86f0c authored by 王源's avatar 王源 🎧

修复迁移文件nullable的bug

parent 732baa64
......@@ -952,8 +952,8 @@ class MakeModelCommand extends HyperfCommand
break;
}
if ($t) {
if ($null == 'NO') {
$t .= "->nullable(false)";
if ($null == 'YES') {
$t .= "->nullable()";
}
if ($default) {
$t .= "->default('$default')";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment