Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Can I add a Unique constraint to a column? - Drizzle Team
DT
Drizzle Team
•
3y ago
•
1 reply
mohitgangrade
Can I add a Unique constraint to a column?
I couldn
't find an option for that in the docs
. I
'm assuming Drizzle doesn
't support that
.
So
, could I just edit one of the migration SQL files myself and add the UNIQUE constraint to it
? Or would that break things
?
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Generated Column Unique Constraint
DT
Drizzle Team / help
10mo ago
Unique Constraint
DT
Drizzle Team / help
16mo ago
Can I set a UNIQUE constraint with a conditional?
DT
Drizzle Team / help
10mo ago
conditional unique constraint
DT
Drizzle Team / help
2y ago