seppevs / migrate-mongo

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

Enable rollback of all scripts from same migration #331

Open ftreguer opened 3 years ago

ftreguer commented 3 years ago

Hi, here is a possible implementation of migrate-mongo down command to enable rollback of several migration scripts of a same migration. When you process to migration you can rollback all migrations scripts from a same migration.

If you have 3 pending migartions and you run migrate-mongo up, migrate-mongo down --block command will rollback the three migration scripts.

It could be usefull if you want to integrate it.

Thank you :)

Checklist
coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling aabc4bf253b6a2f1c1fbd960420240c9cdd20bac on ftreguer:down_scripts_of_same_migration into 4906ff23676ba3b2a9be219be64eb94f440db597 on seppevs:master.

dlecan commented 3 years ago

This feature is very interesting! What is missing to merge this PR?

ghost commented 3 years ago

We should also update the README with the new -b --block option added to down command.

EDIT : sorry, actually there is no need to do that as there is the --help option

Nigui commented 3 years ago

any updates on this feature ?

PavanKumarNew commented 3 years ago

Hi Team,

Regarding PR, Enable rollback of all scripts from same migration #331 when it can be commited to main branch

Regards Pavan

PavanKumarNew commented 2 years ago

Any Update on this, We are looking for this feature

livacengiz commented 2 years ago

Hi, @seppevs. this PR are so important for all of us. can you merge please?

jorasmhj commented 1 year ago

Any update on why this PR has not been merged yet?