diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260819000000_backfill_spend_log_timestamps/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260819000000_backfill_spend_log_timestamps/migration.sql new file mode 100644 index 00000000000..10003afa9db --- /dev/null +++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260819000000_backfill_spend_log_timestamps/migration.sql @@ -0,0 +1,4 @@ +UPDATE "LiteLLM_SpendLogs" +SET "created_at" = "endTime", + "updated_at" = "endTime" +WHERE "created_at" > "endTime" + interval '1 hour';