litellm/db_scripts
Devin AI b6fe1d9866 fix(db): build the spend-logs api_key index without CONCURRENTLY so partitioned tables can migrate
Postgres rejects a concurrent index build on a partitioned parent, so the migration aborted on deployments that ran db_scripts/partition_spend_logs.sql. Also carry the index through the partition and unpartition runbooks, and cover the partitioned shape with a migration test that applies the shipped statement for real.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-08-18 23:23:59 +00:00
..
backfill_daily_tool_spend.sql fix(db_scripts): pin the tool spend backfill session to UTC 2026-07-27 12:29:19 -07:00
create_views.py chore(lint): remove PLR0915 too-many-statements ruff rule (#30574) 2026-06-16 16:52:49 -07:00
migrate_keys.py fix(migrate_keys.py): add script for migrating keys to new db 2025-07-16 10:18:36 -07:00
partition_spend_logs.sql fix(db): build the spend-logs api_key index without CONCURRENTLY so partitioned tables can migrate 2026-08-18 23:23:59 +00:00
unpartition_spend_logs.sql fix(db): build the spend-logs api_key index without CONCURRENTLY so partitioned tables can migrate 2026-08-18 23:23:59 +00:00
update_unassigned_teams.py (DB fix) don't run apply_db_fixes on startup (#6604) 2024-11-05 13:43:08 -08:00