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: Set users email to null if empty #1490

Merged
merged 1 commit into from
Jan 14, 2025
Merged

Conversation

adamantike
Copy link
Collaborator

When a user does not set an email address, we now set it to NULL in the database. That bypasses the unique constraint on the email column, allowing multiple users to have no email address set.

Fixes #1445.

When a user does not set an email address, we now set it to `NULL` in
the database. That bypasses the unique constraint on the `email` column,
allowing multiple users to have no email address set.

Fixes #1445.
@adamantike adamantike requested a review from gantoine January 14, 2025 01:45
Copy link

Test Results

93 tests   93 ✅  30s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 6867486.

Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

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

yaaaass very nice

@adamantike adamantike merged commit b35f878 into master Jan 14, 2025
8 checks passed
@adamantike adamantike deleted the fix/set-users-email-null branch January 14, 2025 02:10
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.

2 participants