Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

[Infra] Add migration for restored BYOM lifecycle fields

Yuneng Jiang46b92da0bd7d
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260327232350_restore_mcp_byom_fields/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260327232350_restore_mcp_byom_fields/migration.sql
new file mode 100644
index 00000000000..db965192512
--- /dev/null
+++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260327232350_restore_mcp_byom_fields/migration.sql
@@ -0,0 +1,14 @@
+-- AlterTable: Restore BYOM lifecycle fields to LiteLLM_MCPServerTable
+-- These were dropped in 20260311180521_schema_sync due to schema drift.
+-- The proxy schema (source of truth) retained them.
+ALTER TABLE "LiteLLM_MCPServerTable"
+ ADD COLUMN IF NOT EXISTS "source_url" TEXT,
+ ADD COLUMN IF NOT EXISTS "approval_status" TEXT DEFAULT 'active',
+ ADD COLUMN IF NOT EXISTS "submitted_by" TEXT,
+ ADD COLUMN IF NOT EXISTS "submitted_at" TIMESTAMP(3),
+ ADD COLUMN IF NOT EXISTS "reviewed_at" TIMESTAMP(3),
+ ADD COLUMN IF NOT EXISTS "review_notes" TEXT;
+
+-- CreateIndex
+CREATE INDEX IF NOT EXISTS "LiteLLM_MCPServerTable_approval_status_idx"
+ ON "LiteLLM_MCPServerTable"("approval_status");