Skip to content

Exposing upToRun and downToRun without actually running migrations #551

@RandomSeeded

Description

@RandomSeeded

I'm submitting a...

  • Bug report
  • Feature request
  • Question

Current behavior

Currently there is no ability to see what migrations will be run without actually running those migrations.

Expected behavior

Additional runnable commands upToRun and downToRun.

What is the motivation / use case for changing the behavior?

When deploying, we want to validate our data after running migrations. Doing so efficiently requires some amount of work (hashing collections) prior to running migrations. Given that most of the time we won't actually have any migrations to run, it would be extremely helpful if there was a method of knowing beforehand how many migrations will run so that we don't have to do this pre-computation.

I'm happy to work on a PR for this but am hoping not to maintain a separate fork. Assuming it met your quality standards, would you open to considering a PR for this functionality?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions