We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
上面这两张图看起来回比较直观些,verify_type 的默认值为空字符串时在生成model的时候丢失了。 正式环境发布的时候,我会执行 AutoMigrate,将model反向生成数据库脚本,导致原本有默认值(EMPTY STRING)的字段全部丢失。
The text was updated successfully, but these errors were encountered:
我猜测gentool生成代码的逻辑可能是默认值和类型的零值一致时就会省略default,这样用migrate确实会有问题
Sorry, something went wrong.
空,null 都会丢弃,这个逻辑不合理,导致原始表的定义缺失
Hi, when the value is empty, we need to generate the default tag as well. @tr1v3r
No branches or pull requests
上面这两张图看起来回比较直观些,verify_type 的默认值为空字符串时在生成model的时候丢失了。
正式环境发布的时候,我会执行 AutoMigrate,将model反向生成数据库脚本,导致原本有默认值(EMPTY STRING)的字段全部丢失。
The text was updated successfully, but these errors were encountered: