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

Support dropping default for a column #478

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Conversation

ryanslade
Copy link
Collaborator

We no allow setting the value of default to null when altering a column. In practice this will cause us to drop the default. It is also possible to set default the value NULL which has a similar effect but is recorded slightly differently in the PG catalogue. (Details here)

Closes #450

Copy link
Collaborator

@andrew-farries andrew-farries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, just a couple of small suggestions.

docs/README.md Outdated Show resolved Hide resolved
examples/46_alter_column_drop_default.json Outdated Show resolved Hide resolved
@ryanslade ryanslade merged commit 81dd0a7 into main Nov 21, 2024
27 checks passed
@ryanslade ryanslade deleted the rs/drop-column-default branch November 21, 2024 16:04
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.

Support for drop default on a column
2 participants