Skip to content

fix: report dedicated error for multiple migrate:down annotations#795

Open
SAY-5 wants to merge 1 commit into
amacneil:mainfrom
SAY-5:fix-multiple-down-error
Open

fix: report dedicated error for multiple migrate:down annotations#795
SAY-5 wants to merge 1 commit into
amacneil:mainfrom
SAY-5:fix-multiple-down-error

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 13, 2026

When a migration section contains more than one -- migrate:down annotation, the parser returns ErrParseMissingUp ("missing up block"), which is misleading because the up block is present. This adds ErrParseMultipleDown so the reported failure matches what the user typed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant