Files
iAs/ias-db/migrations/20260708011000_insert_upgrade_log_0_2_27.sql
wunianxiao af6cfdaa83 feat: 拆分 worker 架构并增强 assistant 安全保护
- 新增 daemon/channel/assistant/function/scheduler/logging worker 架构和 JetStream 消息协议

- 修复邮件通知误入 assistant、迁移 checksum、日志 subject 和工具调用无限循环风险

- 新增 assistant 工具轮次熔断、工具结果截断和提示词软收敛规则

- 补充邮件推送关键字、可信发件人配置、升级日志和验证测试
2026-07-10 00:41:36 +08:00

36 lines
1.4 KiB
SQL
Raw Permalink 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.
INSERT INTO ias_upgrade_logs (
version,
released_at,
title,
description,
changes,
modules
) VALUES (
'0.2.27',
'2026-07-08T00:00:00+08:00',
'抽离数据库基础设施模块',
'新增 ias-db 模块集中负责数据库连接和 SQLx 迁移执行,并将原 ias-service/migrations 整体迁移到 ias-db/migrations。',
'[
"新增 ias-db crate,集中负责 PostgreSQL 连接池创建、DATABASE_URL 读取和 SQLx 迁移执行。",
"将原 ias-service/migrations 整体迁移到 ias-db/migrations,迁移嵌入和变更监听由 ias-db/build.rs 负责。",
"ias-main 改为直接调用 ias_db::connect_db()ias-service 只接收已建立的 PgPool 并运行服务,数据库生命周期边界更清晰。",
"数据库无结构变化;已验证 cargo fmt --check 和 cargo check。"
]'::jsonb,
'{
"ias-common": "0.1.2",
"ias-ai": "0.1.13",
"ias-wechat": "0.1.1",
"ias-context": "0.1.5",
"ias-http": "0.1.14",
"ias-mail": "0.1.15",
"ias-db": "0.1.0",
"ias-service": "0.1.24",
"ias-main": "0.2.27"
}'::jsonb
) ON CONFLICT (version) DO UPDATE SET
released_at = EXCLUDED.released_at,
title = EXCLUDED.title,
description = EXCLUDED.description,
changes = EXCLUDED.changes,
modules = EXCLUDED.modules;