Files
OmniRoute/src/lib/db/migrations/138_dario_fallback_backend.sql
Diego Rodrigues de Sa e Souza f2e36ad0ce fix(ci): clear base-reds on release/v3.8.50 (migration collision + 4 masked gates) (#9600)
Validated in local merge-train (diegosouzapw batch)
2026-08-06 10:40:56 -03:00

12 lines
717 B
SQL

-- Migration 138: Dario failover backend selection for upstream_proxy_config
--
-- Adds `fallback_backend` so a provider whose mode is 'fallback' can choose
-- WHICH embedded proxy handles the retry leg — CLIProxyAPI (the historical,
-- hardcoded behaviour) or Dario (@askalf/dario). Defaults to 'cliproxyapi'
-- so every existing 'fallback' config keeps behaving exactly as it does today
-- (zero behaviour change for anyone not opting in). The new 'dario' value for
-- the `mode` column itself needs no schema change — `mode` is a free TEXT
-- column already ('native' | 'cliproxyapi' | 'dario' | 'fallback').
ALTER TABLE upstream_proxy_config
ADD COLUMN fallback_backend TEXT NOT NULL DEFAULT 'cliproxyapi';