Skip to content

Add is_partial for pg index#150

Merged
tyt2y3 merged 2 commits intoSeaQL:masterfrom
Huliiiiii:partially-unique-index
Nov 9, 2025
Merged

Add is_partial for pg index#150
tyt2y3 merged 2 commits intoSeaQL:masterfrom
Huliiiiii:partially-unique-index

Conversation

@Huliiiiii
Copy link
Copy Markdown
Member

PR Info

First step to fix SeaQL/sea-orm#2666

New Features

Bug Fixes

Breaking Changes

Changes

  • Add field is_partial to Unique

@Huliiiiii
Copy link
Copy Markdown
Member Author

This's breaking change beacause they don't have #[non_exhaustive]😅

Copy link
Copy Markdown
Member

@Expurple Expurple left a comment

Choose a reason for hiding this comment

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

Thank you! Good catch about exhaustiveness. We should audit structs with all-public fields, in addition to enums. Added this to to SeaQL/sea-orm#2548

@tyt2y3 tyt2y3 merged commit 07990f3 into SeaQL:master Nov 9, 2025
11 of 12 checks passed
@Huliiiiii Huliiiiii deleted the partially-unique-index branch November 28, 2025 15:17
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.

Entity generation misinterprets partial unique Index as fully unique

3 participants