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
tagSetting := schema.ParseTagSetting(field.Tag.Get("gorm"), ";") isPrimaryKey := utils.CheckTruth(tagSetting["PRIMARYKEY"], tagSetting["PRIMARY_KEY"])
sqlite,我是用 type 标签去生成数据库表结构,工具查看数据库结构没有问题,上面的判断主键是否需要做个调整 Id int json:"id" gorm:"type:integer not null primary key autoincrement;"
json:"id" gorm:"type:integer not null primary key autoincrement;"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
tagSetting := schema.ParseTagSetting(field.Tag.Get("gorm"), ";")
isPrimaryKey := utils.CheckTruth(tagSetting["PRIMARYKEY"], tagSetting["PRIMARY_KEY"])
sqlite,我是用 type 标签去生成数据库表结构,工具查看数据库结构没有问题,上面的判断主键是否需要做个调整
Id int
json:"id" gorm:"type:integer not null primary key autoincrement;"
The text was updated successfully, but these errors were encountered: