feat: add 'copilot' to ai_provider_type (#25616)

This commit is contained in:
Danny Kopping
2026-05-22 16:10:37 +02:00
committed by GitHub
parent de6d62815e
commit 0d9718e217
12 changed files with 61 additions and 21 deletions
@@ -0,0 +1,2 @@
-- No-op: Postgres does not allow removing enum values safely.
-- Matches the precedent in 000499_ai_provider_type_chatd_values.down.sql.
@@ -0,0 +1,5 @@
-- Add 'copilot' to ai_provider_type. The aibridge runtime already supports
-- Copilot via aibridge.NewCopilotProvider; the enum just needs the
-- discriminator so DB-driven providers can carry it. Mirrors the precedent
-- in 000499_ai_provider_type_chatd_values.up.sql.
ALTER TYPE ai_provider_type ADD VALUE IF NOT EXISTS 'copilot';