Files
OmniRoute/src/lib/db/migrations/124_generic_session_affinity_ttl.sql
Diego Rodrigues de Sa e Souza 735e2d0783 feat(sse): generalize session affinity TTL to all providers (#7274) (#7650)
Validated in local merge-train @ 8f27177d1 (full parity suite green: typecheck+file-size+complexity+cognitive+changelog+unit shards 1&2+vitest)
2026-07-17 22:09:44 -03:00

10 lines
588 B
SQL

-- #7274: generalize session affinity TTL to all providers, not just Codex.
-- Carries the existing 'codexSessionAffinityTtlMs' setting value over to the
-- new generic 'sessionAffinityTtlMs' key so existing Codex users keep their
-- configured TTL after the rename (backward-compatible, additive, idempotent
-- per this repo's key_value migration conventions — see 014_unified_log_artifacts.sql).
INSERT OR IGNORE INTO key_value (namespace, key, value)
SELECT 'settings', 'sessionAffinityTtlMs', value
FROM key_value
WHERE namespace = 'settings' AND key = 'codexSessionAffinityTtlMs';