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
M3: Change UTF8 to utf8mb4 for new installation #8349
Conversation
This reverts commit d0482d9.
I fixed other places where Mautic was using 255 instead of 191 length for varchars. Now the tests are passing and Mautic runs properly with the database built on previous Mautic 2 version. The only difference is that the
So the migration is not necessary if it's not a pain point for the Mautic user. It will run the same as before. The goal is for the new Mautic installations to use the right database encoding. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @escopecz and @kuzmany Two questions:
Thanks |
Thanks!
It's complicated as the migration takes forever on bigger databases. MySql 8 solves this problem but not all Mautic instances are on MySql 8, so we cannot fix it systematically. the other problem is with foreign keys. We'd have to drop foreign keys, run the charset migration and enable the foreign keys again. But that would mean to suspend the instance for the time of the migration so the database won't get into an inconstant state.
Yes, once the encoding will be changed from UTF8 to UTF8MB4 then we can delete EmojiHelper. |
Please be sure you are submitting this against the staging branch.
Description:
This PR is follow up of this PR #6554
Based on this discussion #6490 and this article https://mathiasbynens.be/notes/mysql-utf8mb4
This PR add as default charset utf8mb4 which allow use all unicode symbols (like emoji)
Conclusion from article
Steps to test this PR:
List backwards compatibility breaks:
Hard to say. We have to setup VARCHAR to 191 lenght. More in FriendsOfSymfony/FOSUserBundle#1919 (comment)