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, Nov 7, 1:54 PM
Unknown Object (File)
Thu, Nov 7, 1:25 PM
Unknown Object (File)
Thu, Nov 7, 1:24 PM
Unknown Object (File)
Thu, Nov 7, 11:15 AM
Unknown Object (File)
Thu, Nov 7, 9:56 AM
Unknown Object (File)
Mon, Oct 28, 2:49 AM
Unknown Object (File)
Fri, Oct 25, 6:21 AM
Unknown Object (File)
Thu, Oct 17, 6:57 AM

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.