Replies: 2 comments 5 replies
-
You can opt for your edit: this won't work for filters |
Beta Was this translation helpful? Give feedback.
4 replies
-
My workaround for this so far is to add the following as extendPrismaSchema(schema) {
return schema
.split('\n')
.map(line => {
if (line.includes('email') || line.includes('clientEmail')) {
return line + ' @postgresql.Citext'
}
return line
})
.join('\n')
}, Where email and clientEmail are the fields I wanted to change to case insensitive. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As far as I know, email addresses are generally not case-sensitive, and some users tend to type their email with capital letters in them.
As a result, people end up trying to log in and not knowing why it doesn't work. Making the email comparison case-insensitive would be helpful.
Beta Was this translation helpful? Give feedback.
All reactions