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

Add custom migration file option to up

Open bdcorps opened this issue 5 years ago • 7 comments

Adds a custom switch to up command as presented in #250. Running migrate-mongo up --custom migrate1.js allows you to bypass the database changelog checking to immediately apply the migration. Very useful for testing migration scripts.

Checklist
  • [x] npm test passes and has 100% coverage
  • [x] README.md is updated

bdcorps avatar Sep 12 '20 16:09 bdcorps

Coverage Status

Coverage remained the same at 100.0% when pulling 43a9e888661bfbd9d477979a2e2bf6a921152d2b on bdcorps:master into 17a399499d70178307108d4456d57d98ce978aa8 on seppevs:master.

coveralls avatar Sep 12 '20 16:09 coveralls

Coverage Status

Coverage remained the same at 100.0% when pulling 4ad156aeba48d8fc6dea9a2e08fcbc2510107ea8 on bdcorps:master into 17a399499d70178307108d4456d57d98ce978aa8 on seppevs:master.

coveralls avatar Sep 12 '20 16:09 coveralls

this feature should be useful. request for custom up and custom down :)

RulyAnggriawan avatar Mar 05 '22 16:03 RulyAnggriawan

@seppevs would you be able to review this? Also, if you're not happy with this approach, could you suggest some alternatives?

wyardley avatar Jul 18 '22 18:07 wyardley

@seppevs any chance this could be merged? would be super useful

stascnb avatar Sep 12 '22 05:09 stascnb

@shweshi @MaikeMota bump

stascnb avatar Sep 12 '22 05:09 stascnb

Added with modifications in migrate-mongo-alt

theogravity avatar Sep 13 '23 20:09 theogravity