-
Notifications
You must be signed in to change notification settings - Fork 257
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
If there is a space in front of --migrate:down
, the migration fails, silently
#108
Comments
Hmm, interesting. What version of dbmate are you using? It is supposed to fail in that case. The regular expression used to parse the There are tests and I validated this regexp in a go playground. Any chance you could paste from line 0 up to and including the |
Ohh I just realized this is for the That being said, I'm confused on:
How is it being applied but not run? Can you clarify that? For example, is it making the changes in the |
Given that the |
- Always require down directive - Require up migration before down migration Closes #108
I encountered a strange bug: I had a space in front of
-- migrate:down
, and the migration was getting applied, successfully, except that it wasn't being run (silently failing).This was pretty bad and took a while for me to fix.
We should likely have stricter parsing of the syntax, if this can silently fail
The text was updated successfully, but these errors were encountered: