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 check used when adding non null constraint #142

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

teckwan
Copy link
Member

@teckwan teckwan commented Apr 11, 2024

When changing a column to non-null, we try to look for existing check constraints on the column based on the expression. There seems to however be a typo, and currently, we're taking the first check constraint, whatever it is, from the table.

This PR fixes this, by fixing the typo, and adds a test, which currently fails in master.

@teckwan teckwan requested a review from a team as a code owner April 11, 2024 14:09
@teckwan teckwan merged commit e0f008b into master Apr 12, 2024
14 checks passed
@CharlesDelannoy CharlesDelannoy added the bug Something isn't working label Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants