litellm/tests/integration/database/migrations
joshua-berri e38187324a
fix(spend): support PostgreSQL 12 delivery migrations (#51868)
* fix(spend): support PostgreSQL 12 delivery migrations

The SpendLogDelivery migration defaulted delivery_id to gen_random_uuid(), which
PostgreSQL 12 lacks without pgcrypto, so migrate deploy failed there. The writer
always supplies delivery_id, so the column no longer needs a database default.
Databases that already applied the original migration drop the default in a
follow-up migration without rewriting rows.

* test(spend): apply the ledger enum migration before the delivery migration tests

---------

Co-authored-by: Joshua Valluru <326636767+joshua-berri@users.noreply.github.com>
2026-11-14 17:47:36 -08:00
..
conftest.py test: migrate proxy security, schema migration and MCP legacy tests (#45937) 2026-10-11 16:17:24 -07:00
test_autorouter_baseline_state.py chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
test_db_schema_migration.py chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
test_drop_accounting_event_tables.py fix(spend): support PostgreSQL 12 delivery migrations (#51868) 2026-11-14 17:47:36 -08:00
test_invalid_index_repair.py test: migrate proxy security, schema migration and MCP legacy tests (#45937) 2026-10-11 16:17:24 -07:00
test_prisma_toolchain.py test(integration): update stale CircleCI integration expectations (#46570) 2026-10-14 18:21:59 -07:00
test_replica_identity_full.py test: migrate proxy security, schema migration and MCP legacy tests (#45937) 2026-10-11 16:17:24 -07:00
test_request_log_indexes.py test(integration): point database tests at the moved litellm/proxy-extras package (#51453) 2026-11-12 20:27:00 +00:00