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

Reduce primary key max length to 191 chars #960

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

goetas
Copy link
Member

@goetas goetas commented Apr 9, 2020

Q A
Type bug
BC Break yes
Fixed issues #958

Summary

MariaDB and MySQL have a limit of 767 bytes for a primary key. Considering UTF-8 encoding (up to 4 bytes per char), the maximum string length is 191 chars.

See https://dev.mysql.com/doc/refman/5.7/en/innodb-limits.html

MariaDB and MySQL have a limit of 767 bytes for a primary key. Considering UTF-8 encoding (up to 4 bytes per char), the maximum string length is 191 chars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants