Skip to content

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

Open
xiaogaozi wants to merge 3 commits intoafloyd:masterfrom
xiaogaozi:master
Open

Add new -i options, could prompt user before run migartions.#50
xiaogaozi wants to merge 3 commits intoafloyd:masterfrom
xiaogaozi:master

Conversation

@xiaogaozi
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Contributor

+1

@xiaogaozi
Copy link
Copy Markdown
Author

@afloyd Can you see the PR sometime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants