New issue
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
希望把timestamp类型加入到 “强制非text,blob,json类型字段必须为NOT NULL”的类型中 #411
Comments
你需要null 但是强制NOT null ..... |
是的,这个类型的默认值需要为NULL,但是别的还是需要检查不能为NULL的 |
这个的确遇到到了,时间类型为null是有业务意义存在的,比如说收货时间,确认收货时间等等,现在设置了字段必须not null ,搞得遇到,有这种字段的表还是要跳过yearning去处理 |
感谢反馈,会在后面的版本中完善 |
已经看到 2.3.2 版本支持了 TIMESTAMP 字段类型可以为 NULL,感谢 @cookieY 。 目前 yearning 仅支持 CURRENT_TIMESTAMP 作为 TIMESTAMP 的默认值。 参考官方文档:
11.2.2 The DATE, DATETIME, and TIMESTAMP Types
11.2.5 Automatic Initialization and Updating for TIMESTAMP and DATETIME |
有时候做软删除时,软删除字段使用timestamp类型,但默认值需要为NULL,希望把时间类型加入到
“强制非text,blob,json类型字段必须为NOT NULL”
的类型中去
The text was updated successfully, but these errors were encountered: