From 404135a16a3e53bd5a5950855daaa04a2c3a4d37 Mon Sep 17 00:00:00 2001 From: 1445043649 <> Date: Sun, 10 May 2026 23:03:52 +0800 Subject: [PATCH] feat(config): default database backend to postgres MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit config.example.yaml database 段:postgres 成为活跃默认(postgres_url=\$DATABASE_URL), SQLite 改为注释掉的 fallback 块(offline dev 用)。bump config_version 9→10。 为什么默认改 postgres:Stage 0+ 已要求 ALTER 4 张表加 workspace_id; SQLite 加列后再迁 PG 是返工。Stage 0 没有生产数据,迁移阻力最小。 Stage 0 PR2 T2.1. Co-Authored-By: Claude Opus 4.7 (1M context) --- config.example.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/config.example.yaml b/config.example.yaml index 6f3fb148..c3801ec7 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -15,7 +15,7 @@ # ============================================================================ # Bump this number when the config schema changes. # Run `make config-upgrade` to merge new fields into your local config.yaml. -config_version: 9 +config_version: 10 # ============================================================================ # Logging @@ -878,16 +878,19 @@ skill_evolution: # NOTE: When both `checkpointer` and `database` are configured, # `checkpointer` takes precedence for LangGraph state persistence. # If you use `database`, you can remove the `checkpointer` section. +# Stage 0+ default is postgres (parity with production, room for future RLS). +# Set DATABASE_URL in .env. SQLite is preserved as an offline-dev fallback — +# uncomment the SQLite block below and comment out the Postgres block to use it. +# +# Postgres (default): +database: + backend: postgres + postgres_url: $DATABASE_URL + +# SQLite fallback (offline dev): # database: # backend: sqlite # sqlite_dir: .deer-flow/data -# -# database: -# backend: postgres -# postgres_url: $DATABASE_URL -database: - backend: sqlite - sqlite_dir: .deer-flow/data # ============================================================================ # Run Events Configuration