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

[V2] Prisma unique is case sensitive #427

Open
charlelisefouasse opened this issue Dec 21, 2023 · 2 comments
Open

[V2] Prisma unique is case sensitive #427

charlelisefouasse opened this issue Dec 21, 2023 · 2 comments

Comments

@charlelisefouasse
Copy link
Contributor

Currently, on start ui V2 , prisma @unique constraint is case sensitive. You can create two items 'test' and 'Test' as it is considered different. It would be nice to have a case insensitive unique constraint

@yoannfleurydev
Copy link
Member

My first thought is that we have to handle it at a database level (we are using Postgres, we need to check the options available)

@houssembaltii
Copy link

houssembaltii commented May 10, 2024

is citext extension for PostgreSQL a possible solution ?
https://www.prisma.io/docs/orm/prisma-schema/postgresql-extensions#how-to-introspect-postgresql-extensions

also found this : prisma/prisma#3851 (comment)

if yes , i would like to open a pull request and apply this solution

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

No branches or pull requests

3 participants