update:数据库增加聊天上报策略字段

This commit is contained in:
hrz
2025-05-12 14:16:08 +08:00
parent bfb5420733
commit add000d221
3 changed files with 20 additions and 14 deletions
@@ -1,3 +1,6 @@
-- 添加聊天记录配置字段
ALTER TABLE `ai_agent`
ADD COLUMN `chat_history_conf` tinyint NOT NULL DEFAULT 2 COMMENT '聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)' AFTER `system_prompt`;
ALTER TABLE `ai_agent_template`
ADD COLUMN `chat_history_conf` tinyint NOT NULL DEFAULT 2 COMMENT '聊天记录配置(0不记录 1仅记录文本 2记录文本和语音)' AFTER `system_prompt`;
@@ -113,4 +113,11 @@ databaseChangeLog:
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202505091409.sql
path: classpath:db/changelog/202505091409.sql
- changeSet:
id: 202505111913
author: hrz
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202505111913.sql