Skip to content
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

初始化运行命令报错 #19

Open
pandihao opened this issue Jun 17, 2023 · 2 comments
Open

初始化运行命令报错 #19

pandihao opened this issue Jun 17, 2023 · 2 comments

Comments

@pandihao
Copy link

环境
maridb : 10.3

2023/06/17 17:11:12 C:/Users/pandihao1/go/pkg/mod/gorm.io/driver/[email protected]/migrator.go:258
mail longtext COMMENT '用户邮箱',en from Information_schema.SCHEMATA where SCHEMA_NAME LIKE 'kubemanage%' ORDER BYable bigint DEFAULT 1 COMMENT '用户是否被冻结 1正常 2冻结',status int(11) COMMENT '0离线',created_at datetime(3) NULL,updated_at datetime(3) NULL,deleted_at datetime(3) NULL,PRIMARY KEY (id),INDEX idx_sys_users_deleted_at (deleted_at),INDEX idx_sys_users_uuid (uuid),INDEX idx_sys_users_user_name (user_name`))
Error 1067: Invalid default value for 'nick_name'

@noovertime7
Copy link
Owner

尝试过mysql 8.0吗

@pandihao
Copy link
Author

pandihao commented Jul 3, 2023

改成5.7就好了,应该之前maridb用的版本问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants