Skip to content

Commit

Permalink
Merge pull request #994 from drizzle-team/fix-array-types
Browse files Browse the repository at this point in the history
  • Loading branch information
dankochetov authored Aug 7, 2023
2 parents f1c6b48 + 1b5c6c1 commit 5b01a4f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelogs/drizzle-orm/0.28.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- 🐛 Fixed Postgres array-related issues introduced by 0.28.0 (#983, #992)
2 changes: 1 addition & 1 deletion drizzle-orm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drizzle-orm",
"version": "0.28.0",
"version": "0.28.1",
"description": "Drizzle ORM package for SQL databases",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/src/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SQL, sql } from './sql';
import { Table } from './table';
import { type View, ViewBaseConfig } from './view';

export class ColumnAliasProxyHandler<TColumn extends AnyColumn> implements ProxyHandler<TColumn> {
export class ColumnAliasProxyHandler<TColumn extends Column> implements ProxyHandler<TColumn> {
static readonly [entityKind]: string = 'ColumnAliasProxyHandler';

constructor(private table: Table | View) {}
Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/src/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type ColumnTypeConfig<T extends ColumnBaseConfig<ColumnDataType, string>,
notNull: T['notNull'];
hasDefault: T['hasDefault'];
enumValues: T['enumValues'];
baseColumn: T extends { baseColumn: infer U } ? U : never;
baseColumn: T extends { baseColumn: infer U } ? U : unknown;
} & TTypeConfig;

export type ColumnRuntimeConfig<TData, TRuntimeConfig extends object> = ColumnBuilderRuntimeConfig<
Expand Down
2 changes: 1 addition & 1 deletion drizzle-orm/src/relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export type DBQueryConfig<
export interface TableRelationalConfig {
tsName: string;
dbName: string;
columns: Record<string, AnyColumn>;
columns: Record<string, Column>;
relations: Record<string, Relation>;
primaryKey: AnyColumn[];
}
Expand Down

0 comments on commit 5b01a4f

Please sign in to comment.