litellm/litellm-proxy-extras
yuneng-jiang d4e30a9119 Remove dangerous schema diff force-apply from Prisma migration startup
The `_resolve_all_migrations` method was generating a diff between the DB
and schema.prisma and force-applying it via `prisma db execute`, bypassing
migration tracking entirely. This caused schema thrashing during rolling
deployments when two versions with different schemas were running.

- Remove `_resolve_all_migrations` and its post-deploy "sanity check" call
- Replace with `_mark_all_migrations_applied` (marks only, no diff/apply)
- P3005 handler now uses `_mark_all_migrations_applied` + `prisma migrate deploy`
- P3009 non-idempotent errors now fail fast with actionable error messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 11:03:11 -07:00
..
dist build artifacts 2026-03-09 14:46:03 -07:00
litellm_proxy_extras Remove dangerous schema diff force-apply from Prisma migration startup 2026-03-12 11:03:11 -07:00
tests install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
build_and_publish.md Litellm notes 181 12 (#21231) 2026-02-14 16:39:22 -08: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 add new migrations 2026-02-14 09:56:45 -08:00
poetry.lock bump extras 2025-11-26 11:47:29 -08:00
pyproject.toml bump: version 0.4.52 → 0.4.53 2026-03-09 14:45:41 -07: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