Page MenuHomePhabricator

[keyserver] Fix emojis in MySQL backups
ClosedPublic

Authored by ashoat on Jun 1 2022, 1:33 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 9:33 PM
Unknown Object (File)
Thu, Jun 27, 10:50 AM
Unknown Object (File)
Thu, Jun 27, 10:50 AM
Unknown Object (File)
Thu, Jun 27, 10:50 AM
Unknown Object (File)
Thu, Jun 27, 10:47 AM
Unknown Object (File)
Thu, Jun 27, 3:05 AM
Unknown Object (File)
Sun, Jun 23, 12:15 PM
Unknown Object (File)
Sun, Jun 16, 4:09 PM

Details

Summary

When I tested restoring my keyserver backup on my laptop, I noticed that all of the emojis were broken. I did some Googling and found some results that together pointed at this solution.

Depends on D4176

Test Plan

Backup my keyserver DB on server and then restore on my laptop

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested review of this revision.Jun 1 2022, 2:32 AM

Weird that this doesn't get picked up from MySQL.. we specify DEFAULT CHARSET for the messages/threads/etc table in setup-db.js

This revision is now accepted and ready to land.Jun 1 2022, 8:01 AM

Yeah, super weird. The people in the Twitter thread linked above had the exact same comment...

This revision was automatically updated to reflect the committed changes.