You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version:1.25.10
question: It can only be executed when the table is created for the first time. If it is executed again, as long as there is a unique index in the table, it will prompt that an undefined index cannot be deleted.
-- 只有第一次创建表的时候可以执行,再次执行,只要表有唯一索引,就会提示无法删除一个未定义的索引
error:Error 1091 (42000): Can't DROP 'uni_sys_users_user_name'; check that column/key exists
GORM Playground Link
go-gorm/playground#1
Description
version:1.25.10
question: It can only be executed when the table is created for the first time. If it is executed again, as long as there is a unique index in the table, it will prompt that an undefined index cannot be deleted.
-- 只有第一次创建表的时候可以执行,再次执行,只要表有唯一索引,就会提示无法删除一个未定义的索引
error:Error 1091 (42000): Can't DROP 'uni_sys_users_user_name'; check that column/key exists
UserName string
gorm:"size:50;column:user_name;comment:登录名称;uniqueIndex:idx_user_name;" json:"userName"
// 登录名称The text was updated successfully, but these errors were encountered: