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
环境 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'
longtext COMMENT '用户邮箱',
bigint DEFAULT 1 COMMENT '用户是否被冻结 1正常 2冻结',
int(11) COMMENT '0离线',
datetime(3) NULL,
datetime(3) NULL,PRIMARY KEY (
),INDEX
(
The text was updated successfully, but these errors were encountered:
尝试过mysql 8.0吗
Sorry, something went wrong.
改成5.7就好了,应该之前maridb用的版本问题
No branches or pull requests
环境
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 BYablebigint DEFAULT 1 COMMENT '用户是否被冻结 1正常 2冻结',
statusint(11) COMMENT '0离线',
created_atdatetime(3) NULL,
updated_atdatetime(3) NULL,
deleted_atdatetime(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'
The text was updated successfully, but these errors were encountered: