diff --git a/drizzle-orm/src/mysql-core/columns/char.ts b/drizzle-orm/src/mysql-core/columns/char.ts index 9c7049135..55743a5d4 100644 --- a/drizzle-orm/src/mysql-core/columns/char.ts +++ b/drizzle-orm/src/mysql-core/columns/char.ts @@ -24,7 +24,7 @@ export class MySqlCharBuilder< > extends MySqlColumnBuilder< T, MySqlCharConfig, - { length?: T['length'] } + { length: T['length'] } > { static override readonly [entityKind]: string = 'MySqlCharBuilder'; @@ -46,7 +46,7 @@ export class MySqlCharBuilder< } export class MySqlChar & { length?: number | undefined }> - extends MySqlColumn, { length?: T['length'] }> + extends MySqlColumn, { length: T['length'] }> { static override readonly [entityKind]: string = 'MySqlChar'; diff --git a/drizzle-orm/src/mysql-core/columns/varchar.ts b/drizzle-orm/src/mysql-core/columns/varchar.ts index cd946a5b6..0a0bde857 100644 --- a/drizzle-orm/src/mysql-core/columns/varchar.ts +++ b/drizzle-orm/src/mysql-core/columns/varchar.ts @@ -45,7 +45,7 @@ export class MySqlVarCharBuilder< } export class MySqlVarChar & { length?: number | undefined }> - extends MySqlColumn> + extends MySqlColumn, { length: T['length'] }> { static override readonly [entityKind]: string = 'MySqlVarChar';