From 000372bd4a7badd38db48fcfc8d7ed09ebaed611 Mon Sep 17 00:00:00 2001 From: Princesseuh <3019731+Princesseuh@users.noreply.github.com> Date: Thu, 16 May 2024 18:45:16 +0200 Subject: [PATCH] fix: build --- packages/db/src/core/queries.ts | 1 + packages/db/src/core/types.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/db/src/core/queries.ts b/packages/db/src/core/queries.ts index 200476c148..ea8250c03a 100644 --- a/packages/db/src/core/queries.ts +++ b/packages/db/src/core/queries.ts @@ -101,6 +101,7 @@ export function schemaTypeToSqlType(type: ColumnType): 'text' | 'integer' { switch (type) { case 'date': case 'text': + case 'file': case 'json': return 'text'; case 'number': diff --git a/packages/db/src/core/types.ts b/packages/db/src/core/types.ts index f52abc8318..3255b63792 100644 --- a/packages/db/src/core/types.ts +++ b/packages/db/src/core/types.ts @@ -30,6 +30,7 @@ export type DateColumn = z.infer; export type DateColumnInput = z.input; export type JsonColumn = z.infer; export type JsonColumnInput = z.input; +export type FileColumn = z.infer; export type FileColumnInput = z.input; export type ColumnType = @@ -37,7 +38,8 @@ export type ColumnType = | NumberColumn['type'] | TextColumn['type'] | DateColumn['type'] - | JsonColumn['type']; + | JsonColumn['type'] + | FileColumn['type']; export type DBColumn = z.infer; export type DBColumnInput =