You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(channels): extract channel bindings from configs into dedicated channels table
New `channels` table with explicit fields (type, account_id, user_id,
agent_id, bot_token, base_url, etc.) replacing the overloaded configs
rows where kind='channel'. UNIQUE(type, account_id) enforces one-bot-
one-agent at the DB level.
Strategy: dual-write + fallback-read for zero-downtime migration.
- All writes go to both tables (configs + channels)
- Reads prefer channels table, fall back to configs
- Auto-migration copies existing configs channel rows on startup
- Old configs rows preserved for rollback safety
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments