Repository navigation
docs(proxy): document the pre-migration row check and --check_migrations_against_existing_data - #2635
Merged
kerry-berri merged 1 commit intoOct 27, 2026
Conversation
…ons_against_existing_data Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
kerry-berri
enabled auto-merge (squash)
October 27, 2026 19:20
kerry-berri
deleted the
litellm_check_migrations_against_existing_data_docs
branch
October 27, 2026 19:25
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the pre-migration row check that landed in litellm with #48493, from v1.108.0: the migration job reads the rows a pending schema change depends on before
prisma migrate deployand refuses with a named report when they would make the change fail, andlitellm --check_migrations_against_existing_dataruns the same check on its own against a database before an upgradeThree pages change.
docs/proxy/upgrade_guide.mdgets a "Check the rows before the schema" section under "Before you upgrade" with the docker command, the exit codes, the report as it prints, which statement kinds get a check,LITELLM_MIGRATION_DATA_CHECK_TIMEOUT, and what the check cannot see, plus one sentence in "Custom deployments" saying--skip_server_startupnow runs it first.docs/troubleshoot/prisma_migrations.mdgets section 6 for the refusal text, with the symptom on v1.108.0 and later, the symptom on v1.103.0 to v1.107.x (theindex row size ... exceeds btree version 4 maximum 2704failure, inside the migration on v1.103.x and v1.104.x, as an INVALID request-log index from v1.105.0), the cause (raw keys written before v1.99.0, 2684 bytes left forapi_keynext tostartTime), the count query, the hashUPDATE, and the cleanup of an invalid index or a failed migration entry on older versions.docs/proxy/cli.mdgets the flag under Database ConfigurationVersion facts checked against the litellm tags: the index migration
20260823000000_add_spend_logs_api_key_starttime_indexfirst ships in v1.103.0, litellm#43948 moved the build into the job in v1.105.0, and main is at 1.108.0Link to Devin session: https://app.devin.ai/sessions/14b2bd229edf4b11a3220d90993f6708
Open in Devin Desktop: https://app.devin.ai/desktop/session/14b2bd229edf4b11a3220d90993f6708?variant=devin
Requested by: @kerry-berri