update db to use unicode8
Some checks failed
Build and Push Backend / docker (push) Failing after 5s

This commit is contained in:
irving
2025-11-06 23:54:10 -05:00
parent 6e21143a46
commit cc59f859af

View File

@@ -0,0 +1,31 @@
-- Roll newer earnings/withdrawal tables back to legacy utf8mb4_general_ci
-- This keeps them compatible with older tables (e.g. play_order_info) that are still on general_ci.
-- Run in maintenance window; each ALTER rebuilds the entire table.
ALTER TABLE `play_earnings_line`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `play_withdrawal_request`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `play_withdrawal_log`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `play_freeze_policy`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `play_earnings_backfill_log`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `play_clerk_payee_profile`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
ALTER TABLE `play_tenant_alipay_config`
CONVERT TO CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;