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

fix MySQL collations #75

Open
jrwdunham opened this issue Dec 17, 2015 · 0 comments
Open

fix MySQL collations #75

jrwdunham opened this issue Dec 17, 2015 · 0 comments

Comments

@jrwdunham
Copy link
Member

The Unique constraint is not working because of the collation utf8_general_ci. Thus a tag like "Accusative" will cause a 500 db error if "accusative" is already present, even though the OLD's validation will let it pass. This messes up x-2-OLD migration scripts in particular.

The current "fix" is to alter the collation of a specific column as needed. ALTER TABLE tag MODIFY name VARCHAR(255) COLLATE utf8_bin;

Changing everything to utf8_bin may have unintended consequences, related to:

  • case-sensitive search
  • performance
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