mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
Merge pull request #24078 from vanhtuan0409/fix-schema-drift
fix(schema): restore MCP server fields dropped by schema_sync migration
This commit is contained in:
commit
134b01d530
2 changed files with 18 additions and 6 deletions
|
|
@ -0,0 +1,13 @@
|
||||||
|
-- Restore fields dropped by 20260311180521_schema_sync on LiteLLM_MCPServerTable
|
||||||
|
-- AlterTable
|
||||||
|
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");
|
||||||
|
|
@ -321,12 +321,11 @@ model LiteLLM_MCPServerTable {
|
||||||
byok_description String[] @default([])
|
byok_description String[] @default([])
|
||||||
byok_api_key_help_url String?
|
byok_api_key_help_url String?
|
||||||
source_url String?
|
source_url String?
|
||||||
// BYOM submission lifecycle
|
approval_status String? @default("active")
|
||||||
approval_status String? @default("active")
|
submitted_by String?
|
||||||
submitted_by String?
|
submitted_at DateTime?
|
||||||
submitted_at DateTime?
|
reviewed_at DateTime?
|
||||||
reviewed_at DateTime?
|
review_notes String?
|
||||||
review_notes String?
|
|
||||||
|
|
||||||
@@index([approval_status])
|
@@index([approval_status])
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue