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

Enable rollback of all scripts from same migration

Open ftreguer opened this issue 3 years ago • 8 comments

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

ftreguer avatar Mar 24 '21 13:03 ftreguer

Coverage Status

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

coveralls avatar Mar 24 '21 13:03 coveralls

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

dlecan avatar Mar 31 '21 13:03 dlecan

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

ghost avatar May 05 '21 18:05 ghost

any updates on this feature ?

Nigui avatar Jun 07 '21 09:06 Nigui

Hi Team,

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

Regards Pavan

PavanKumarNew avatar Jul 27 '21 06:07 PavanKumarNew

Any Update on this, We are looking for this feature

PavanKumarNew avatar Oct 07 '21 10:10 PavanKumarNew

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

livacengiz avatar Jul 22 '22 14:07 livacengiz

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

jorasmhj avatar Jun 15 '23 14:06 jorasmhj