From 1fbb9a3bd3f2e9af40543bf3cce66065672b1e5a Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Fri, 24 Apr 2026 19:21:07 -0700 Subject: [PATCH] refactor: neutralize dead model_spend migration (replaced by dedicated table approach) --- .../migration.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425000000_add_team_membership_model_spend/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425000000_add_team_membership_model_spend/migration.sql index 4e4c93df3a0..58d2c6f310c 100644 --- a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425000000_add_team_membership_model_spend/migration.sql +++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260425000000_add_team_membership_model_spend/migration.sql @@ -1,2 +1,4 @@ --- AlterTable: add model_spend JSON column to LiteLLM_TeamMembership for per-model budget tracking -ALTER TABLE "LiteLLM_TeamMembership" ADD COLUMN IF NOT EXISTS "model_spend" JSONB NOT NULL DEFAULT '{}'; +-- No-op: model_spend column on LiteLLM_TeamMembership was superseded by the +-- dedicated LiteLLM_TeamMemberModelSpend table (added in the next migration). +-- The JSON approach was dropped to allow atomic per-model increment without +-- read-modify-write races under concurrent pod flushes.