New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Print current version on missing migrations error #591
Comments
To clarify are you looking for the current DB version or the first "next" version? For example, 12,13 are applied .. 14,15 are missing .. 16,17,22 are applied Are you looking for 16 or 22 to be printed? |
Interesting question. I think I'm looking for 16, since I'd need to |
Ended up adding the max db version. 1,4,5 applied and 2,3 are missing 2024/05/11 16:27:54 goose run: error: found 2 missing migrations before current version 5:
version 2: testdata/migrations/00002_posts_table.sql
version 3: testdata/migrations/00003_comments_table.sql
exit status 1 I think since the user knows the max of the missing versions, it'd always be a down-to that version, e.g,. in this case I'd have to down-to 4 (which is max missing 3 + 1). |
Great, thanks @mfridman :) |
It would be nice to print a current version (ie. 00022) that causes this error
The text was updated successfully, but these errors were encountered: