© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago•
1 reply
Fair Enough

Weird unique constraint

I'm trying to make a unique constraint on a column. It should also be case-insensitive (if there is one row with the value being "User", then "user" will be rejected) and allow non-distinct nulls. I can't figure out how to do this with drizzle-orm or sql. I appreciate any help. Thank you!
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Unique Constraint
Drizzle TeamDTDrizzle Team / help
16mo ago
conditional unique constraint
Drizzle TeamDTDrizzle Team / help
2y ago
MySQL unique constraint
Drizzle TeamDTDrizzle Team / help
3y ago
Generated Column Unique Constraint
Drizzle TeamDTDrizzle Team / help
10mo ago