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

go_admin报错解决办法 #21

Open
qmcloud opened this issue Apr 22, 2021 · 0 comments
Open

go_admin报错解决办法 #21

qmcloud opened this issue Apr 22, 2021 · 0 comments

Comments

@qmcloud
Copy link
Owner

qmcloud commented Apr 22, 2021

  • mysql最好是 5.6 版本 如果大于 5.6 会报 Specified key was too long; max key length is 1000 bytes
    只需需改
    type CasbinRule struct {
    ID uint gorm:"primaryKey;autoIncrement"
    Ptype string gorm:"size:20"
    V0 string gorm:"size:20"
    V1 string gorm:"size:60"
    V2 string gorm:"size:20"
    V3 string gorm:"size:20"
    V4 string gorm:"size:20"
    V5 string gorm:"size:20"
    }
    的size值即可
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant