Files
MBTI_wang/api/database/migrations/patch_ai_messages_isdegraded.sql
卡若 ce55c48c64 feat: 同步今日小程序与后台迭代版本
集中提交今日 API、管理端、小程序与部署文档调整,确保 Gitea 主分支与本地最新开发版本一致。

Made-with: Cursor
2026-04-20 11:07:55 +08:00

6 lines
384 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.

-- 若线上 ai_messages 早于 isDegraded 字段创建,助手消息 INSERT 会失败 → 异步任务 error → 小程序「小神仙这边出了点状况」
-- 将表名前缀改为与 .env database.prefix 一致(示例为 mbti_
ALTER TABLE `mbti_ai_messages`
ADD COLUMN `isDegraded` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '是否为降级兜底回答' AFTER `providerId`;