From 37334274e3de09a1457f46475ceb6cc727d89992 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 21 Feb 2026 11:57:17 -0800 Subject: [PATCH] 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. --- .../migration.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 litellm-proxy-extras/litellm_proxy_extras/migrations/20260221000000_ensure_project_id_verification_token/migration.sql diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260221000000_ensure_project_id_verification_token/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260221000000_ensure_project_id_verification_token/migration.sql new file mode 100644 index 00000000000..697928c85d2 --- /dev/null +++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260221000000_ensure_project_id_verification_token/migration.sql @@ -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;