Skip to content

feat: add migrate sql up|down|status#3894

Merged
aeneasr merged 3 commits intomasterfrom
migrate-sql-down
Nov 27, 2024
Merged

feat: add migrate sql up|down|status#3894
aeneasr merged 3 commits intomasterfrom
migrate-sql-down

Conversation

@aeneasr
Copy link
Copy Markdown
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 commands

hydra migrate sql up ...
hydra migrate sql status ...

instead of the previous, now deprecated

hydra migrate sql ...
hydra migrate status ...

commands.

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
    [email protected]) 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

@aeneasr aeneasr requested review from alnr and hperl as code owners November 22, 2024 13:13
@aeneasr aeneasr force-pushed the migrate-sql-down branch 2 times, most recently from 7251df7 to def1855 Compare November 27, 2024 11:27
@aeneasr aeneasr changed the title feat: add migrate sql up|down feat: add migrate sql up|down|status Nov 27, 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 commands

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

instead of the previous, now deprecated

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

commands.

See ory-corp/cloud#7350
@aeneasr aeneasr merged commit d27882f into master Nov 27, 2024
@aeneasr aeneasr deleted the migrate-sql-down branch November 27, 2024 13:14
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.

1 participant