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

Partial Unique Indexes should not be marked as is_unique #543

Merged
merged 2 commits into from
Jul 11, 2024

Conversation

olirice
Copy link
Contributor

@olirice olirice commented Jul 10, 2024

What kind of change does this PR introduce?

Currently if a partial unique index is created it counts as a fully unique index and if there is an associated foreign key the relationship changes from a 1:N to 1:1

This change prevents partial unique indexes from being marked as is_unique in the SQL context

resolves #542

@olirice olirice requested a review from imor July 10, 2024 16:08
@olirice olirice merged commit 0b1c39b into master Jul 11, 2024
4 checks passed
@olirice olirice deleted the or/issue_542 branch July 11, 2024 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants