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

创建数据迁移报错 #776

Open
liaokylin opened this issue Nov 7, 2023 · 1 comment
Open

创建数据迁移报错 #776

liaokylin opened this issue Nov 7, 2023 · 1 comment
Labels

Comments

@liaokylin
Copy link

Reproduction link

https://github.com/go-admin-team/go-admin.git

Steps to reproduce

./go-admin.exe migrate -c config/settings.yml

What is expected?

What is actually happening?

CREATE UNIQUE INDEX idx_sys_casbin_rule ON sys_casbin_rule (ptype,v0,v1,v2,v3,v4,v5,v6,v7)
panic: Error 1071 (42000): Specified key was too long; max key length is 1000 bytes

Environment Info
go-admin undefined
Go 1.21
System win10
Browser chrome
@wenjianzhang
Copy link
Member

you can try using the latest version, or adjust the database configuration according to the error prompts

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