Skip to content

Commit

Permalink
Fix MySQL char types
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Mario564 committed Dec 5, 2024
1 parent ee0aac0 commit 8f9f3b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drizzle-orm/src/mysql-core/columns/char.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class MySqlCharBuilder<
> extends MySqlColumnBuilder<
T,
MySqlCharConfig<T['enumValues'], T['length']>,
{ length?: T['length'] }
{ length: T['length'] }
> {
static override readonly [entityKind]: string = 'MySqlCharBuilder';

Expand All @@ -46,7 +46,7 @@ export class MySqlCharBuilder<
}

export class MySqlChar<T extends ColumnBaseConfig<'string', 'MySqlChar'> & { length?: number | undefined }>
extends MySqlColumn<T, MySqlCharConfig<T['enumValues'], T['length']>, { length?: T['length'] }>
extends MySqlColumn<T, MySqlCharConfig<T['enumValues'], T['length']>, { length: T['length'] }>
{
static override readonly [entityKind]: string = 'MySqlChar';

Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/src/mysql-core/columns/varchar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class MySqlVarCharBuilder<
}

export class MySqlVarChar<T extends ColumnBaseConfig<'string', 'MySqlVarChar'> & { length?: number | undefined }>
extends MySqlColumn<T, MySqlVarCharConfig<T['enumValues'], T['length']>>
extends MySqlColumn<T, MySqlVarCharConfig<T['enumValues'], T['length']>, { length: T['length'] }>
{
static override readonly [entityKind]: string = 'MySqlVarChar';

Expand Down

0 comments on commit 8f9f3b8

Please sign in to comment.