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?
1 Reply
Is this what you are looking for ?
https://orm.drizzle.team/docs/indexes-constraints#unique
Indexes & Constraints – DrizzleORM
Drizzle ORM | %s