litellm/litellm-proxy-extras
Yuneng Jiang 7092be453d
fix(proxy-extras): make the pooler migration fallback actually run
_resolve_all_migrations falls back to `prisma db execute --file` per shipped
migration when `prisma migrate diff` fails, which is what a pooler DATABASE_URL
with no DIRECT_URL does. Two things kept that fallback from ever running. The
diff file is opened for writing before prisma runs, so it exists even when
prisma fails and the `exists()` guard never trips; the empty file was then
executed as the drift script and, on the baseline path, every migration got
marked applied without running. And the fallback globbed `*/migration.sql`
under the package dir instead of its `migrations/` subdir, so it would have
matched nothing.

The diff step now reports whether prisma produced a script, and the fallback
globs `migrations/*/migration.sql` like _get_migration_names does.
2026-09-03 16:14:39 -07:00
..
dist adding build 2026-03-21 22:55:04 -07:00
litellm_proxy_extras fix(proxy-extras): make the pooler migration fallback actually run 2026-09-03 16:14:39 -07:00
tests test(proxy-extras): wrap an over-long monkeypatch line 2026-09-02 19:03:17 -07:00
build_and_publish.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -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 [Infra] Add freshness and destructive guards to migration workflow 2026-04-21 12:00:23 -07:00
pyproject.toml bump: litellm-enterprise 0.1.63 -> 0.1.64, litellm-proxy-extras 0.4.92 -> 0.4.93 2026-09-03 10:53:50 -07:00
README.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -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:

uv add litellm-proxy-extras

OR

uv tool install 'litellm[proxy]' # installs litellm-proxy-extras and other proxy dependencies

To use the migrations, run:

litellm --use_prisma_migrate