mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Self-hosted databases can contain keys whose user_id references a user deleted before the constraint existed, or used as free-form attribution. Nulling those rows was irreversible data mutation and the validating ALTER TABLE could fail a deploy. NOT VALID adds the constraint without reading a single existing row, enforcing only new writes; a best-effort VALIDATE then upgrades it to fully valid on clean databases and quietly leaves it NOT VALID where orphans exist. The migration can no longer fail or modify data under any database state |
||
|---|---|---|
| .. | ||
| 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