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

Fix ALTER TABLE ADD COLUMN default nullability #558

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

andrew-farries
Copy link
Collaborator

@andrew-farries andrew-farries commented Dec 19, 2024

Columns added by ALTER TABLE ADD COLUMN are nullable by default.

For the pgroll Column type, these means we need to set Nullable to true by default when converting such SQL statements with sql2pgroll.

Columns added by `ALTER TABLE ADD COLUMN` are nullable by default.
For the `pgroll` `Column` type, these means we need to set `Nullable` to
`true` by default.
@andrew-farries andrew-farries added the sql2pgroll Issues relating to the sql2pgroll package label Dec 19, 2024
@andrew-farries andrew-farries marked this pull request as ready for review December 19, 2024 15:22
@andrew-farries andrew-farries merged commit 783d282 into main Jan 2, 2025
28 checks passed
@andrew-farries andrew-farries deleted the fix-alter-table-add-column-expectations branch January 2, 2025 09:06
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