mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
fix(migrations): add ensure_project_id_verification_token migration
Ensures project_id column exists on LiteLLM_VerificationToken. The original migration (20251113000000_add_project_table) adds this column, but may have been skipped if LiteLLM_ProjectTable already existed and the migration was resolved as idempotent. Uses IF NOT EXISTS for safety.
This commit is contained in:
parent
8c4cbde436
commit
37334274e3
1 changed files with 5 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
-- Ensure project_id column exists in LiteLLM_VerificationToken.
|
||||
-- The original migration (20251113000000_add_project_table) adds this column,
|
||||
-- but if it failed partway through (e.g. LiteLLM_ProjectTable already existed)
|
||||
-- and was resolved as idempotent, the ALTER TABLE step may have been skipped.
|
||||
ALTER TABLE "LiteLLM_VerificationToken" ADD COLUMN IF NOT EXISTS "project_id" TEXT;
|
||||
Loading…
Add table
Reference in a new issue