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
使用github.com/casbin/gorm-adapter/v3 v3.0.3 的时候 ,
if !db.Migrator().HasTable("casbin_rule") { err = db.Migrator().CreateTable(&gormadapter.CasbinRule{}) } mysql 创建的数据库的表名是casbin_rules ,应该是 casbin_rule 才能正常使用
if !db.Migrator().HasTable("casbin_rule") { err = db.Migrator().CreateTable(&gormadapter.CasbinRule{}) }
The text was updated successfully, but these errors were encountered:
@nodece
Sorry, something went wrong.
@smartisantt can you please change your title and text into English? Thanks!
OK, It's my wrong. There is no question.😊
hsluoyz
No branches or pull requests
使用github.com/casbin/gorm-adapter/v3 v3.0.3 的时候 ,
if !db.Migrator().HasTable("casbin_rule") { err = db.Migrator().CreateTable(&gormadapter.CasbinRule{}) }
mysql 创建的数据库的表名是casbin_rules ,应该是 casbin_rule 才能正常使用
The text was updated successfully, but these errors were encountered: