From c1ba369426903bf62d7e69287c7f2edb43b5347b Mon Sep 17 00:00:00 2001 From: Darius Date: Mon, 11 Mar 2024 22:07:55 +0000 Subject: [PATCH] [ci] format --- packages/db/src/core/cli/migration-queries.ts | 2 +- packages/db/src/core/load-file.ts | 2 +- packages/db/src/core/types.ts | 24 +++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/db/src/core/cli/migration-queries.ts b/packages/db/src/core/cli/migration-queries.ts index 3d77935977..81911faaef 100644 --- a/packages/db/src/core/cli/migration-queries.ts +++ b/packages/db/src/core/cli/migration-queries.ts @@ -16,6 +16,7 @@ import { import { isSerializedSQL } from '../../runtime/types.js'; import { MIGRATION_VERSION } from '../consts.js'; import { RENAME_COLUMN_ERROR, RENAME_TABLE_ERROR } from '../errors.js'; +import { columnSchema } from '../schemas.js'; import { type BooleanColumn, type ColumnType, @@ -32,7 +33,6 @@ import { type TextColumn, } from '../types.js'; import { getRemoteDatabaseUrl } from '../utils.js'; -import { columnSchema } from '../schemas.js'; const sqlite = new SQLiteAsyncDialect(); const genTempTableName = customAlphabet('abcdefghijklmnopqrstuvwxyz', 10); diff --git a/packages/db/src/core/load-file.ts b/packages/db/src/core/load-file.ts index dca49be337..e4da7688ec 100644 --- a/packages/db/src/core/load-file.ts +++ b/packages/db/src/core/load-file.ts @@ -8,8 +8,8 @@ import { CONFIG_FILE_NAMES, VIRTUAL_MODULE_ID } from './consts.js'; import { INTEGRATION_TABLE_CONFLICT_ERROR } from './errors.js'; import { errorMap } from './integration/error-map.js'; import { getConfigVirtualModContents } from './integration/vite-plugin-db.js'; -import { type AstroDbIntegration } from './types.js'; import { dbConfigSchema } from './schemas.js'; +import { type AstroDbIntegration } from './types.js'; import { getDbDirectoryUrl } from './utils.js'; const isDbIntegration = (integration: AstroIntegration): integration is AstroDbIntegration => diff --git a/packages/db/src/core/types.ts b/packages/db/src/core/types.ts index dc23ee509e..1eeabc7b1b 100644 --- a/packages/db/src/core/types.ts +++ b/packages/db/src/core/types.ts @@ -1,20 +1,20 @@ import type { AstroIntegration } from 'astro'; import type { z } from 'zod'; import type { - booleanColumnSchema, - numberColumnSchema, - textColumnSchema, - dateColumnSchema, - jsonColumnSchema, - columnSchema, - tableSchema, - referenceableColumnSchema, - indexSchema, - numberColumnOptsSchema, - textColumnOptsSchema, - columnsSchema, MaybeArray, + booleanColumnSchema, + columnSchema, + columnsSchema, + dateColumnSchema, dbConfigSchema, + indexSchema, + jsonColumnSchema, + numberColumnOptsSchema, + numberColumnSchema, + referenceableColumnSchema, + tableSchema, + textColumnOptsSchema, + textColumnSchema, } from './schemas.js'; export type Indexes = Record>;