seppevs / migrate-mongo

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

Rollback the entire context #387

Open PavanKumarNew opened 3 years ago

PavanKumarNew commented 3 years ago

Hi Team,

Currently when i am running the down command it is rollbacking only the last file. I need to rollback the files that were executed in the context, Please suggest.

Example if i migrate two files using migrate up command and if i want to rollback all that files that were migrated in the context , how can i leverage the functionality.

davidzwa commented 3 years ago

To hop onto this issue, I'd like to have the up() do one migration at a time instead of all. Maybe a command line flag like --all can help both cases to become more predictable.

Must add: Im used to EF Core, so this is already much better.