migrate-mongo
migrate-mongo copied to clipboard
Enable rollback of all scripts from same migration
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
- [x]
npm test
passes and has 100% coverage - [x] README.md is updated
Coverage remained the same at 100.0% when pulling aabc4bf253b6a2f1c1fbd960420240c9cdd20bac on ftreguer:down_scripts_of_same_migration into 4906ff23676ba3b2a9be219be64eb94f440db597 on seppevs:master.
This feature is very interesting! What is missing to merge this PR?
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
any updates on this feature ?
Hi Team,
Regarding PR, Enable rollback of all scripts from same migration #331 when it can be commited to main branch
Regards Pavan
Any Update on this, We are looking for this feature
Hi, @seppevs. this PR are so important for all of us. can you merge please?
Any update on why this PR has not been merged yet?