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

The default automatically created table is “casbin_rules“, but the default selected table is “casbin_rule“ #80

Closed
shaolei opened this issue Mar 10, 2021 · 8 comments
Assignees
Labels

Comments

@shaolei
Copy link

shaolei commented Mar 10, 2021

image

@shaolei
Copy link
Author

shaolei commented Mar 10, 2021

默认自动创建的表是“casbin_rules”,但是默认查询的表是“casbin_rule”

@hsluoyz
Copy link
Member

hsluoyz commented Mar 10, 2021

Hi @shaolei can you modify your text into English?

@hsluoyz
Copy link
Member

hsluoyz commented Mar 10, 2021

@closetool

@hsluoyz hsluoyz self-assigned this Mar 10, 2021
@kilosonc
Copy link
Contributor

@shaolei Hi, could you provide some more specific infos, cause I test locally and it works well
image

@hsluoyz
Copy link
Member

hsluoyz commented Mar 10, 2021

@closetool can you take a look about in which PR we switched to the new table name "casbin_rule"? I think @shaolei is using an old version.

@00LT00
Copy link
Member

00LT00 commented Mar 10, 2021

@hsluoyz @closetool Hello, I reopen a issues about this question.

@00LT00
Copy link
Member

00LT00 commented Mar 10, 2021

@shaolei hello. I suggest you could change the version of gorm on go.mod. It runs correctly

@hsluoyz
Copy link
Member

hsluoyz commented Mar 14, 2021

@shaolei bug fixed in: https://github.com/casbin/gorm-adapter/releases/tag/v3.2.2

@hsluoyz hsluoyz closed this as completed Mar 14, 2021
@hsluoyz hsluoyz added bug and removed question labels Mar 14, 2021
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

4 participants