Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign updiesel migration down #1509
Comments
This comment has been minimized.
|
You can revert a single migration with |
sgrif
closed this
Jan 24, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
coder543 commentedJan 24, 2018
•
edited
I quickly glanced through the issues (open and closed), and didn't see anything mention this, so I figured I would. Would it make sense for there to be a subcommand on the diesel CLI that goes all the way down?
I'm not sure how to use the
down.sqlfiles usefully without a command that will run through the migrations in reverse and down all of them. Instead, I have a script that will just drop the entirepublicschema, recreate it, and then run the diesel migrations when I want a clean starting point.If I could use the diesel CLI itself to run all of the
down.sqlfiles in reverse, that would be really nice!Maybe I'm missing something obvious.