Skip to content
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

update rollback to rollback all migrations that were applied by the migrate command #35

Open
yogthos opened this issue Sep 8, 2015 · 7 comments

Comments

@yogthos
Copy link
Owner

yogthos commented Sep 8, 2015

Currently, migrate will apply all outstanding migrations, but rollback will only rollback the last migration that was applied.

@ndrluis
Copy link
Contributor

ndrluis commented Feb 25, 2016

what about something like rails migration?

When you call only rake db:rollback rails rollback only the last migration but if you want to recover more migration you can call rake db:rollback STEP=3 and rollback three steps.

@yogthos
Copy link
Owner Author

yogthos commented Feb 25, 2016

I'd be ok with that, Rails is true and tested so I don't see any reason not to follow step. :)

@yogthos
Copy link
Owner Author

yogthos commented Feb 25, 2016

It would be nice to also have the option to rollback the last set of migrations that was applied as well though. I find that's fairly common, if I run a set and it breaks something, I probably want to roll back the whole set at that point. Could be something like rollback all

@ndrluis
Copy link
Contributor

ndrluis commented Feb 25, 2016

@yogthos IMO could be better to be more explicit, like rollback last-migration-batch

@yogthos
Copy link
Owner Author

yogthos commented Feb 25, 2016

I'm not too attached to the wording there, any chance you'd be interested to take this one on? :)

@ndrluis
Copy link
Contributor

ndrluis commented Feb 25, 2016

@yogthos I don't have a lot of experience with clojure but I can try :D

@yogthos
Copy link
Owner Author

yogthos commented Feb 25, 2016

I can definitely help out with any questions and help out with getting the feature going

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

No branches or pull requests

2 participants