mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
_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. |
||
|---|---|---|
| .. | ||
| dist | ||
| litellm_proxy_extras | ||
| tests | ||
| build_and_publish.md | ||
| LICENSE | ||
| migration_runbook.md | ||
| pyproject.toml | ||
| README.md | ||
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