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

Can I rollback all migrations? #399

Open
tgbv opened this issue Sep 29, 2021 · 6 comments
Open

Can I rollback all migrations? #399

tgbv opened this issue Sep 29, 2021 · 6 comments

Comments

@tgbv
Copy link

tgbv commented Sep 29, 2021

Currently migrate-mongo down rolls back only latest added migration. Is there a way to roll back all of them?

@BifrostBuilder
Copy link

BifrostBuilder commented Oct 29, 2021

One way would be to count the number of files in the directory where you have the migrations and run migrate-mongo down that many times.

@devaku
Copy link

devaku commented Feb 13, 2022

Has this feature been updated into the package? It'd be real nice to revert back all the way to the very beginning.

@DTrafford
Copy link

I just wanna vote for this feature

@lucasschirm
Copy link

All the way, or to a specific point in time, to test changes in some part of the system.

@DTrafford
Copy link

I would think it would be great to pass in an argument.

Roll back all. Or roll back a specific file(migration)

@Multi-Thinker
Copy link

same issue.

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

No branches or pull requests

6 participants