Skip to content

feat(db): add unique constraint on user.uuid#2016

Open
kayjoosten wants to merge 3 commits into
mainfrom
feature/issue-1974-unique-user-uuid-index
Open

feat(db): add unique constraint on user.uuid#2016
kayjoosten wants to merge 3 commits into
mainfrom
feature/issue-1974-unique-user-uuid-index

Conversation

@kayjoosten

Copy link
Copy Markdown
Contributor

The uuid column stores collabPersonUuid, which must be unique per user. The existing non-unique idx_user_uuid provided no enforcement.

Migration uses ALGORITHM=INPLACE, LOCK=NONE for zero-downtime on large tables. Skips if idx_user_uuid is absent (already migrated manually).

Closes #1974

@kayjoosten kayjoosten requested a review from johanib June 2, 2026 10:27
The uuid column stores collabPersonUuid, which must be unique per user.
The existing non-unique idx_user_uuid provided no enforcement.

Migration uses ALGORITHM=INPLACE, LOCK=NONE for zero-downtime on large
tables. Skips if idx_user_uuid is absent (already migrated manually).

Closes #1974
@kayjoosten kayjoosten force-pushed the feature/issue-1974-unique-user-uuid-index branch from 89890c4 to 8cdff03 Compare June 10, 2026 07:50
@kayjoosten kayjoosten requested a review from johanib June 10, 2026 09:00
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.

Missing unique index on user.uuid

2 participants