Skip to content

Commit

Permalink
Add migration for clans table collation
Browse files Browse the repository at this point in the history
  • Loading branch information
Swan committed Aug 26, 2024
1 parent 983f0eb commit 0a51a7b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/database/migrations/18_clans_utf8.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN;

ALTER TABLE clans CONVERT TO CHARACTER SET latin1
COLLATE latin1_swedish_ci;

COMMIT;

7 changes: 7 additions & 0 deletions cmd/database/migrations/18_clans_utf8.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BEGIN;

ALTER TABLE clans CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;

COMMIT;

0 comments on commit 0a51a7b

Please sign in to comment.