-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for emojis #64
base: develop
Are you sure you want to change the base?
Conversation
@themightychris Could you take a look at this when you get a chance? |
@nbey what does charset need to be set to to support emojis? Is there any downsides to switching the default to that? |
@themightychris Charset needs to be set from According to this article, we should probably just update the default to |
@nbey thanks! It sounds like the consensus is everyone should be using All the guides I've found though discuss changing the server/client config and migrating the tables in sync, I haven't been able to find any clarity on what would happen if we just changed the client/server config now and migrated tables independently. It seems like these settings just set the default for new tables, and I know MySQL thoroughly supports having tables and columns in various character sets during runtime. So my gut is that it would be fine to just switch the default now and roll out a migration in skeleton to convert existing tables whenever admins want to pull the trigger on that However if we find any evidence that changing config and migrating tables out of sync would be problematic, we might add support to the kernel to run system-level migrations so it could migrate all tables next time it starts up with the new default, recording state in /emergence/config.json Any thoughts from your own experiments and reading? |
@themightychris Yeah, I think we could go with the former, and just create site-level migrations. I tested these changes on my development server; first I made the changes to the mysql config file, then I restarted the server. Then I tried saving an emoji, which failed as expected until I migrated the database/table, so I think it should be fine. Before we merge though, I can run a few more tests around having a |
@nbey that would be really helpful, please do And this can be a sep issue, but do you happen to have any code lying around still for looping over tables to apply migration? |
@themightychris I don't but I can look into writing up a quick migration script; we shouldn't have to do more than update the charset/collation for the db/tables, and then repair/optimize the tables. |
/emergence/config.json
file