fix in mysql

This commit is contained in:
Mateusz Gruszczyński
2026-08-05 10:29:31 +02:00
parent a9911da9a3
commit 73286d921b
7 changed files with 27 additions and 7 deletions
@@ -0,0 +1,8 @@
-- Existing MySQL databases may have inherited utf8mb3 from the database default.
-- Convert all persisted document text to utf8mb4 so emoji and other 4-byte
-- Unicode characters can be stored in both current documents and revisions.
ALTER TABLE pads CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE revisions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE workspaces CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE notes CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE note_revisions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;