feat(config): default database backend to postgres
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) <noreply@anthropic.com>
This commit is contained in:
+11
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user