Skip to content

🐛 Allow loosely false values to not violate unique constraints not jus… #207

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richardfwashington
Copy link

@richardfwashington richardfwashington commented Jan 28, 2025

This fixes #191 by allowing loosely false values, not just strictly null values to be used in fields with unique constraints.

This resolves a problem with Supabase auth whereby it blocks multiple users having the same recovery_token (and other columns) which need to all be the empty string.

@richardfwashington richardfwashington changed the title 🐛 Allow nullish values to not violate unique constrainsts not jus… 🐛 Allow nullish values to not violate unique constraints not jus… Jan 28, 2025
@richardfwashington richardfwashington changed the title 🐛 Allow nullish values to not violate unique constraints not jus… 🐛 Allow loosely false values to not violate unique constraints not jus… Feb 5, 2025
@ChuckJonas
Copy link

Would love to see this merged. Making it hard to generate seeds on users.auth

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.

Constraints false failure for unique index
2 participants