DT
Drizzle Teammohitgangrade
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?
L
Louistiti•304d ago
Is this what you are looking for ?
https://orm.drizzle.team/docs/indexes-constraints#unique
Indexes & Constraints – DrizzleORM
Drizzle ORM | %s
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More Posts"Cannot parse date or time" using AWS Data API, aurora postgresI'm trying drizzle-orm (with sst) and aurora pg thru aws data api, when trying to insert a Date valuFiltering against a relationI have a orgs table that have a many to many relation with a users table.
while querying with the fGet type for select query?Hey guys, is there a way to infer the "select" type for a given table? for example:
```ts
async getorderBy related table columnGiven a relational query such as
```
const matchResult = await db.query.matches.findMany({