feat(db): improve migration status reporting - #63632
Open
joshtrichards wants to merge 12 commits into
Open
Conversation
Assisted-by: Copilot:gpt-5.6-sol Signed-off-by: Josh <josh.t.richards@gmail.com>
Assisted-by: Copilot:gpt-5.6-sol Signed-off-by: Josh <josh.t.richards@gmail.com>
Make version states explicit by deriving them from the already-loaded executed and available version lists. This lets the command distinguish: - None — a boundary or empty state. - Unknown — the last recorded migration is missing from the installed code. - A concrete version identifier — the relationship is known. Assisted-by: Copilot:gpt-5.6-sol Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
add an overall status summary and a prominent warning for migration-history inconsistencies Signed-off-by: Josh <josh.t.richards@gmail.com>
Replace the incomplete name-keyed descriptions with a version-keyed list containing every unapplied migration, including migrations without names or descriptions. - Every available-but-unexecuted migration now appears in the details. - Empty names no longer cause migrations to disappear. Assisted-by: Copilot:gpt-5.6-sol Signed-off-by: Josh <josh.t.richards@gmail.com>
Assisted-by: Copilot:gpt-5.6-sol Signed-off-by: Josh <josh.t.richards@gmail.com>
Assisted-by: Copilot:gpt-5.6-sol Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
joshtrichards
requested review from
Altahrim,
leftybournes,
provokateurin and
salmart-dev
and removed request for
a team
August 25, 2026 15:47
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.
Resolves: #Summary
Improve the
migrations:statuscommand so that its output is accurate, easier to interpret, and more useful for diagnosing migration-state inconsistencies.The command now presents a structured status report with an overall summary, clearer terminology, explicit version states, detailed unapplied migrations, and actionable warnings when migration history references versions missing from the installed code.
Changes
Nonewhen no previous or next migration existsUnknownwhen the last executed migration is missing from the installed codeMotivation
The previous output used ambiguous terms and could report that an installation was at the first or latest migration when the current recorded migration was simply unavailable in the installed code. In addition, unnamed migrations were omitted from the pending migration details.
Examples
Testing
Added tests covering:
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)