Skip to content

Command to run single file migrations script #296

@shpetimselaci

Description

@shpetimselaci

Is your feature request related to a problem? Please describe.
We're using the tool to run our migrations in our MongoDB database.
Right now, it only runs all the migrations scrips under migrations folder
We want to run a migration from a single file that we recently wrote.

Describe the solution you'd like
It would be nice if we could have a command like this:

migrate-mongo [up|down] --migration-file 'migrations/your-migration-file.js'
It would use the default config you've already set, or have a argument for that as well in this line like so:

migrate-mongo [up|down] --migration-file 'migrations/your-migration-file.js' --config 'my-config-file.js'
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions