litellm/litellm-proxy-extras
Alexsander Hamir 6bf33b6673 Make migration generation idempotent by default
- Add shared utility function to make migrations idempotent (IF NOT EXISTS)
- Update migration generation scripts to use shared utility
- Fix existing migration file to use IF NOT EXISTS clauses
- Add comprehensive test suite with 23 test cases covering edge cases
- Ensure all future migrations are automatically idempotent

This prevents migration failures when columns/indexes already exist,
making migrations safe to re-run on databases that were manually fixed.
2026-02-03 10:32:09 -08:00
..
dist bump extras 2026-01-31 15:19:14 -08:00
litellm_proxy_extras Make migration generation idempotent by default 2026-02-03 10:32:09 -08:00
tests install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
LICENSE install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
migration_runbook.md dics Database Migration Runbook 2025-09-26 19:49:35 -07:00
poetry.lock bump extras 2025-11-26 11:47:29 -08:00
pyproject.toml bump extras 2026-01-31 15:19:14 -08:00
README.md fix: docs 2025-05-10 17:37:04 -07:00

Additional files for the proxy. Reduces the size of the main litellm package.

Currently, only stores the migration.sql files for litellm-proxy.

To install, run:

pip install litellm-proxy-extras

OR

pip install litellm[proxy] # installs litellm-proxy-extras and other proxy dependencies

To use the migrations, run:

litellm --use_prisma_migrate