Skip to content

go_admin报错解决办法 #21

@qmcloud

Description

@qmcloud
  • 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值即可

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions