seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
926 stars 163 forks source link

Can I rollback all migrations? #399

Open tgbv opened 3 years ago

tgbv commented 3 years ago

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

erlindcekaj commented 2 years ago

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 commented 2 years ago

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

DTrafford commented 1 year ago

I just wanna vote for this feature

lucasschirm commented 1 year ago

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

DTrafford commented 1 year ago

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

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

Multi-Thinker commented 1 year ago

same issue.