-
Notifications
You must be signed in to change notification settings - Fork 17
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
Change mysql collation and charset from utf8 -> utf8mb4 #183
Conversation
I think it depends what you're desired outcome is - should this only apply to new columns or also to existing. Please update the PR with some more info about this change and what the goal is. |
@snopoke I forgot to link the ticket. I updated the initial comment. The idea is essentially just to be able to save emoji's in MySQL, but because MySQL's default I guess the idea is to apply it to existing columns also, since the issue came up when a partner reported it (see ticket for more info). |
@snopoke Ok, so I had a chance now to look at this again. Turns out my understanding of what was happening was wrong, so please ignore my previous comment. I don't need any migrations - only need to change the QA:
|
Do you know if that collation works for all versions of MySQL? Also, we suggest |
@proteusvacuum Yes the docs should also update, but I want to update it only after this has been merged.
|
Do you know what happens if someone were to use the old |
@proteusvacuum When I tried to use |
@Charl1996 that sounds like a great idea |
@proteusvacuum @snopoke Any other concerns regarding this PR? (docs will update just after merge) |
Looks good to me. Since this will 'break' any existing mysql usages that use a different charset param we should also send out a notification on the forum: https://forum.dimagi.com/c/platform-announce/8 |
The test passes locally with my changes, but for some reason I'm inclined to feel that this PR still needs a migration to alter the existing MySQL columns' CHARACTER SET and COLLATION settings to
utf8mb4
andutf8mb4_unicode_ci
respectively...or is my hunch wrong?See ticket