PendingMigrationsError: Change to more generic DatabaseError#871
Open
mao-sz wants to merge 3 commits into
Open
PendingMigrationsError: Change to more generic DatabaseError#871mao-sz wants to merge 3 commits into
mao-sz wants to merge 3 commits into
Conversation
mao-sz
requested review from
a team and
wise-king-sullyman
and removed request for
a team
June 30, 2026 06:27
Contributor
Author
Will make error more generic, since there are multiple Database issues that can occur
More than one potential database error - ensure error message is relevant
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.



Because
Currently, one of the startup checks is whether there are pending migrations to apply. This isn't the only database-related startup error though. Right now, if the connection string isn't accurate or
postgresql.serviceisn't running, it still reports the pending migrations error.dbmate status --exit-codereturns1when connected but pending migrations, and2for db connection issues.I do not know if
postgresql.serviceandsystemctlis different for different distros, or how it's handled on macOS (macOS guide doesn't mention anything about it), so I've left that error message more general for people to google if they run into it.This PR
Issue
Closes #XXXXX
Additional Information
Pull Request Requirements
location of change: brief description of changeformat, e.g.Callbacks command: Update verbiageBecausesection summarizes the reason for this PRThis PRsection has a bullet point list describing the changes in this PRIssuesection