落地并存测服全端:智能体 Graph/路由、后台切 8180、主账与部署脚本齐备,便于线上重发与验收。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,7 +1,24 @@
|
||||
# PostgreSQL 运行账迁移
|
||||
|
||||
后续在此目录添加版本化 SQL(inbox / outbox / checkpoint / 任务认领等)。
|
||||
- 只对当前环境变量 `PG_DATABASE` / `PG_DSN` 执行(新系统 **`inquiry_robot_runtime`**)。
|
||||
- **禁止**对现网 `ytd_runtime` 执行迁移(代码会拒绝)。
|
||||
|
||||
- 只对当前环境变量 `PG_DATABASE` 执行(新系统 `inquiry_robot_runtime`)。
|
||||
- **禁止**对现网 `ytd_runtime` 执行迁移。
|
||||
- 骨架阶段不建业务表。
|
||||
## 文件
|
||||
|
||||
| 文件 | 内容 |
|
||||
|---|---|
|
||||
| `001_runtime_core_v1.sql` | inbox / outbox / conversation_session / suspend_wait / clarification_binding / agent_job |
|
||||
|
||||
## Graph checkpoint
|
||||
|
||||
LangGraph `PostgresSaver.setup()` 会在连接库内另建 checkpoint 表,与上表分开。
|
||||
|
||||
## 怎么跑
|
||||
|
||||
```text
|
||||
cd inquiry-agent
|
||||
python -m agent.runtime_db.migrate --list
|
||||
python -m agent.runtime_db.migrate
|
||||
```
|
||||
|
||||
需已配置 `PG_DSN` 或 `PG_HOST`+`PG_DATABASE`+`PG_USER`(及密码)。
|
||||
|
||||
Reference in New Issue
Block a user