huayang/backend/sql/patch_i18n_value_to_longtext.sql
liuwenxin 85083ab962 feat(site): integrate multilingual content management / 集成多语言内容管理
完善官网、管理后台与后端的多语言内容编辑和发布流程,调整站点页面及相关接口,并同步数据库脚本。

新增容器部署配置,改用环境变量注入数据库凭据;补充仓库忽略规则,并停止跟踪本地环境文件和 Maven 构建产物。
2026-09-10 14:46:06 +08:00

13 lines
651 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.

-- =====================================================================
-- i18n_value 字段长度扩展(支持富文本翻译)
-- 背景:新闻正文 / 产品描述等富文本字段长度可能超过 500 字符,
-- 原 varchar(500) 不足以承载,需扩展为 LONGTEXT。
-- 执行环境:MySQL 8+
-- 幂等:MODIFY COLUMN 在已扩展过的库执行不会出错。
-- =====================================================================
ALTER TABLE `huayang_i18n`
MODIFY COLUMN `i18n_value` LONGTEXT
CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci
NOT NULL COMMENT '翻译值(支持富文本,HTML/Markdown 等)';