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

Convert RENAME CONSTRAINT SQL to pgroll operation #514

Merged

Conversation

andrew-farries
Copy link
Collaborator

Convert SQL statements like:

ALTER TABLE foo RENAME CONSTRAINT bar TO baz

to an OpRenameConstraint operation:

[
  {
    "rename_constraint": {
      "table": "foo",
      "from": "bar",
      "to": "baz"
    }
  }
]

Part of #504

@andrew-farries andrew-farries added the sql2pgroll Issues relating to the sql2pgroll package label Dec 5, 2024
@andrew-farries andrew-farries marked this pull request as ready for review December 5, 2024 09:40
@andrew-farries andrew-farries force-pushed the sql2pgroll-convert-rename-table-statements branch from 4da1b58 to 7e1a125 Compare December 5, 2024 11:10
Base automatically changed from sql2pgroll-convert-rename-table-statements to main December 5, 2024 11:12
Convert SQl statements like:

```sql
ALTER TABLE foo RENAME CONSTRAINT bar TO baz
```

to an `OpRenameConstraint` operation:

```json
[
  {
    "rename_constraint": {
      "table": "foo",
      "from": "bar",
      "to": "baz"
    }
  }
]
```
@andrew-farries andrew-farries force-pushed the sql2pgroll-convert-rename-constraint-statements branch from 70d78c3 to c827444 Compare December 5, 2024 11:13
@andrew-farries andrew-farries merged commit 34b623f into main Dec 5, 2024
27 checks passed
@andrew-farries andrew-farries deleted the sql2pgroll-convert-rename-constraint-statements branch December 5, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql2pgroll Issues relating to the sql2pgroll package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants