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

mysql 创建的数据库的表名是casbin_rules #57

Closed
smartisantt opened this issue Nov 11, 2020 · 3 comments
Closed

mysql 创建的数据库的表名是casbin_rules #57

smartisantt opened this issue Nov 11, 2020 · 3 comments
Assignees
Labels

Comments

@smartisantt
Copy link

使用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 才能正常使用

@hsluoyz
Copy link
Member

hsluoyz commented Nov 12, 2020

@nodece

@hsluoyz
Copy link
Member

hsluoyz commented Nov 12, 2020

@smartisantt can you please change your title and text into English? Thanks!

@smartisantt
Copy link
Author

OK, It's my wrong. There is no question.😊

@hsluoyz hsluoyz self-assigned this Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants