-- =====================================================
-- 营销模块表排序规则统一（与 app_member / app_member_coupon 对齐）
-- 模块：business-marketing
-- 创建时间：2026-06-25
-- 说明：修复跨表 JOIN 时 utf8mb4_general_ci 与 utf8mb4_unicode_ci 混用导致的 1267 错误
-- 执行：在已有库上执行一次即可；新建库直接使用 marketing.sql（已为 unicode_ci）
-- =====================================================

ALTER TABLE `app_member_tenant` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `cfg_marketing_tenant_ext` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `cfg_marketing_tenant_qrcode` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `app_member_coupon_verify_log` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
