seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
931 stars 166 forks source link

Allow for custom migration file to run for up and down #250

Open bdcorps opened 4 years ago

bdcorps commented 4 years ago

Is your feature request related to a problem? Please describe. I always test my migrations on a local copy of the data first. When writing migration scripts, I have to test them by running an up. The migration gets added to the changelog and I cannot test any new changes again until I either - delete the changelog entry or rename the migration file. Both take unnecessary time.

Describe the solution you'd like A switch in the up and down command to specify a migration file to be run. Sample command - mongo-migrate up --custom abc.js

Describe alternatives you've considered Deleting the changelog entry or renaming the migration file

Additional context Add any other context or screenshots about the feature request here.