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

Explicitly use UTF8 encoding for media metadata table #863

Merged
merged 1 commit into from
Apr 11, 2020
Merged

Conversation

Xaekai
Copy link
Collaborator

@Xaekai Xaekai commented Apr 11, 2020

This resolves the ER_TOO_LONG_KEY error on creation of the media_metadata_cache table because databases that default to full 4-byte utf8mb4 encoding make the VARCHAR(255) id column larger than the maximum supported key binary length of 767 bytes by MySQL and MariaDB RDBMS's.

Resolves #860

@Xaekai
Copy link
Collaborator Author

Xaekai commented Apr 11, 2020

Since this can only happen at initial server creation, I think adding code to detect malformed database just for this would be wasteful. The hoster should just DROP and CREATE the database again.

@Xaekai Xaekai merged commit f2adbe1 into 3.0 Apr 11, 2020
@Xaekai Xaekai deleted the explicit-meta branch April 11, 2020 21:24
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

Successfully merging this pull request may close these issues.

Error on server first run: ER_TOO_LONG_KEY
1 participant