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

feat: add migrate sql up|down #3894

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

feat: add migrate sql up|down #3894

wants to merge 2 commits into from

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Nov 22, 2024

This patch adds the ability to execute down migrations using:

hydra migrate sql down -e --steps {num_of_steps}

Please read hydra migrate sql down --help carefully.

Going forward, please use the following command to apply up migrations

hydra migrate sql up -e --steps {num_of_steps}

instead of the previous, now deprecated

hydra migrate sql -e --steps {num_of_steps}

command.

See https://github.com/ory-corp/cloud/issues/7350

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    security@ory.sh) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

This patch adds the ability to execute down migrations using:

```
hydra migrate sql down -e --steps {num_of_steps}
```

Please read `hydra migrate sql down --help` carefully.

Going forward, please use the following command to apply up migrations

```
hydra migrate sql up ...
```

instead of the previous, now deprecated

```
hydra migrate sql ...
```

command.

See ory-corp/cloud#7350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant