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

修复迁移文件nullable的bug

parent 732baa64
...@@ -952,8 +952,8 @@ class MakeModelCommand extends HyperfCommand ...@@ -952,8 +952,8 @@ class MakeModelCommand extends HyperfCommand
break; break;
} }
if ($t) { if ($t) {
if ($null == 'NO') { if ($null == 'YES') {
$t .= "->nullable(false)"; $t .= "->nullable()";
} }
if ($default) { if ($default) {
$t .= "->default('$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