Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target option to up & down commands, and next option to up command #1

Open
wants to merge 4 commits into
base: down_scripts_of_same_migration
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented May 5, 2021

NB: this feature has to be merged after the following Pull Request as it is based on it.
seppevs#331

Hello,

I propose the adding of a few options for up & down commands.

  • Target option (up & down) 🎯
    migrate-mongo up -t <fileName> : runs all migration scripts until the targetted fileName (included)
    migrate-mongo down -t <fileName> : rolls back all migration scripts until the targetted fileName (excluded)

  • Next option (up only) ⏭️
    migrate-mongo up -n : runs only next migration script

A few minor improvements are also included.

Checklist
  • npm test passes and has 100% coverage
  • README.md is updated

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.

0 participants