Skip to content

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

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

feat(db): add unique constraint on user.uuid#2016
kayjoosten wants to merge 1 commit 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

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
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

1 participant