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

Index column size too large #5

Open
jmfarina opened this issue Nov 27, 2015 · 0 comments
Open

Index column size too large #5

jmfarina opened this issue Nov 27, 2015 · 0 comments

Comments

@jmfarina
Copy link

While installing, database migrations fail with the following error:

Mysql2::Error: Index column size too large. The maximum column size is 767 bytes.: CREATE INDEX index_remote_repo_revisions_on_remote_repo_id_and_sha ON remote_repo_revisions (remote_repo_id, sha)

A quick and dirty workaround is to run the following command in MySQL, which will make it silently ignore the error and truncate the length of the index name:
set GLOBAL innodb_large_prefix=OFF;
You can re-enable it after executing the migration.

@jmfarina jmfarina changed the title Index name too long Index column size too large Sep 18, 2016
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