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 ALTER TABLE foo RENAME TO bar SQL to pgroll operation #513

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

andrew-farries
Copy link
Collaborator

Convert SQL statements of the form:

ALTER TABLE foo RENAME TO bar

to the corresponding OpRenameTable operation:

[
  {
    "rename_table": {
      "from": "foo",
      "to": "bar"
    }
  }
]

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:17
Base automatically changed from rename-and-move-test-vars to main December 5, 2024 11:09
Convert SQL statements of the form:

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

to the corresponding `OpRenameTable` operation:

```json
[
  {
    "rename_table": {
      "from": "foo",
      "to": "bar"
    }
  }
]
```
@andrew-farries andrew-farries force-pushed the sql2pgroll-convert-rename-table-statements branch from 4da1b58 to 7e1a125 Compare December 5, 2024 11:10
@andrew-farries andrew-farries merged commit 3512f76 into main Dec 5, 2024
26 checks passed
@andrew-farries andrew-farries deleted the sql2pgroll-convert-rename-table-statements branch December 5, 2024 11:12
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