afloyd / mongo-migrate

MIT License
159 stars 81 forks source link

Add new `-i` options, could prompt user before run migartions. #50

Open xiaogaozi opened 8 years ago

xiaogaozi commented 8 years ago

Sometimes we don't want to run migrations immediately. It's meaningful check migrations before actually run them. So I add the new -i option, for example:

$ node ./node_modules/mongodb-migrate -runmm -i down
  down : migrations/0010-add-index.js
  down : migrations/0005-add-some-collection.js
These migrations will be run, continue? [y/N]
raiyankamal commented 8 years ago

+1

xiaogaozi commented 8 years ago

@afloyd Can you see the PR sometime?