goInception icon indicating copy to clipboard operation
goInception copied to clipboard

timestamp default 使用utc_timestamp审核不通过

Open Asa6 opened this issue 1 year ago • 2 comments

CREATE TABLE t_tenant ( id int NOT NULL AUTO_INCREMENT COMMENT 'id', create_user_id int NOT NULL DEFAULT '0' COMMENT '创建人', update_time datetime NOT NULL DEFAULT (utc_timestamp) COMMENT '更新时间', PRIMARY KEY (id), UNIQUE KEY check_tenant_code (tenant_code) COMMENT '租户编码唯一' ) ENGINE=InnoDB AUTO_INCREMENT=119 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='租户';

mysql实际支持,goinception这里并不支持 报错 表定义不正确,使用utc_timestamp设置默认值时无法审核通过.

重现 模拟重现的步骤

环境

数据库: mysql 版本: 8.0 参数 可能与问题相关的设置参数

Asa6 avatar Jun 05 '24 03:06 Asa6

得等主分支修复了,可以看下我的分支https://gitee.com/zhoujin826/goInception

zmix999 avatar Jun 05 '24 09:06 zmix999

得主分支修复了,可以看下我的分支https://gitee.com/zhoujin826/goInception

好的,非常感谢,我下载安装一下

Asa6 avatar Jun 06 '24 02:06 Asa6