-- 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;
