Case insensitive unique constraint #3851
Labels
domain/psl
Issue in the "PSL" domain: Prisma Schema Language
domain/schema
Issue in the "Schema" domain: Prisma Schema, Introspection, Migrations etc.
kind/feature
A request for a new feature.
topic: indexes
topic: schema
Problem
It's really important to keep the casing in some of our columns which are unique ( cannot be duplicated ) which constraint can be overridden so easily by just change the casing
Suggested solutions
I've found some articles and the most matching one is this
Within schema it'd be great having
Alternatives
The second solution which is the only available at the moment is to create another column with lowercased letters and it'll be the unique one
The text was updated successfully, but these errors were encountered: