seppevs / migrate-mongo

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

Add custom migration file option to up #251

Open bdcorps opened 4 years ago

bdcorps commented 4 years ago

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
coveralls commented 4 years ago

Coverage Status

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

coveralls commented 4 years ago

Coverage Status

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

RulyAnggriawan commented 2 years ago

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

wyardley commented 2 years ago

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

stascnb commented 2 years ago

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

stascnb commented 2 years ago

@shweshi @MaikeMota bump

theogravity commented 1 year ago

Added with modifications in migrate-mongo-alt