Files
inquiry_robot/deploy/sql/fix_inquiry_robot_collation_v1.sql
T

12 lines
701 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- =============================================================================
-- 统一 inquiry_robot 字符集/排序规则为 utf8mb4_general_ci
-- 背景:精简表用 utf8mb4_0900_ai_ci,官方建表用 utf8/utf8mb4_general_ci,
-- 登录后 SysPermissionMapper.queryByUser JOIN 会报 Illegal mix of collations。
-- 禁止对现网 jeecg-boot 库执行。
-- =============================================================================
ALTER DATABASE `inquiry_robot` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-- 对库内每张表执行(示例;本机已用脚本批量 CONVERT):
-- ALTER TABLE `表名` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;