migrate-mongo
migrate-mongo copied to clipboard
Add custom migration file option to up
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 testpasses and has 100% coverage - [x] README.md is updated
Coverage remained the same at 100.0% when pulling 43a9e888661bfbd9d477979a2e2bf6a921152d2b on bdcorps:master into 17a399499d70178307108d4456d57d98ce978aa8 on seppevs:master.
Coverage remained the same at 100.0% when pulling 4ad156aeba48d8fc6dea9a2e08fcbc2510107ea8 on bdcorps:master into 17a399499d70178307108d4456d57d98ce978aa8 on seppevs:master.
this feature should be useful. request for custom up and custom down :)
@seppevs would you be able to review this? Also, if you're not happy with this approach, could you suggest some alternatives?
@seppevs any chance this could be merged? would be super useful
@shweshi @MaikeMota bump
Added with modifications in migrate-mongo-alt