diff --git a/drizzle-orm/src/sqlite-core/columns/common.ts b/drizzle-orm/src/sqlite-core/columns/common.ts index 7c6dad71f..2e2e96ccc 100644 --- a/drizzle-orm/src/sqlite-core/columns/common.ts +++ b/drizzle-orm/src/sqlite-core/columns/common.ts @@ -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; }