Skip to content

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

@geekbozu
Copy link

geekbozu commented Nov 3, 2025

Would also love to see this get merged, followed the docs to get snaplet going and got greeted with this as a hard blocker. So its back to manually curating data for my project. Snaplet looked like it was about to save me a bunch of time.

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

3 participants