25 lines
688 B
Markdown
25 lines
688 B
Markdown
# PostgreSQL 运行账迁移
|
|
|
|
- 只对当前环境变量 `PG_DATABASE` / `PG_DSN` 执行(新系统 **`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`(及密码)。
|