Skip to content

Commit

Permalink
Add name to sqlite unique column function
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Jul 6, 2023
1 parent 19fe010 commit 0ca9a8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drizzle-orm/src/sqlite-core/columns/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ export abstract class SQLiteColumnBuilder<
return this;
}

unique(): this {
unique(
name?: string,
): this {
this.config.isUnique = true;
this.config.uniqueName = name;
return this;
}

Expand Down

0 comments on commit 0ca9a8c

Please sign in to comment.