migrate-mongo icon indicating copy to clipboard operation
migrate-mongo copied to clipboard

Can I rollback all migrations?

Open tgbv opened this issue 4 years ago • 6 comments

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

tgbv avatar Sep 29 '21 08:09 tgbv

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.

BlinkStrike avatar Oct 29 '21 21:10 BlinkStrike

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

devaku avatar Feb 13 '22 10:02 devaku

I just wanna vote for this feature

DTrafford avatar Mar 15 '23 23:03 DTrafford

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

lucasschirm avatar Apr 02 '23 00:04 lucasschirm

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

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

DTrafford avatar Apr 02 '23 11:04 DTrafford

same issue.

Multi-Thinker avatar Sep 25 '23 18:09 Multi-Thinker