summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/db/src/core/cli/migration-queries.ts2
-rw-r--r--packages/db/src/core/load-file.ts2
-rw-r--r--packages/db/src/core/types.ts18
3 files changed, 11 insertions, 11 deletions
diff --git a/packages/db/src/core/cli/migration-queries.ts b/packages/db/src/core/cli/migration-queries.ts
index 3d7793597..81911faae 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 dca49be33..e4da7688e 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 dc23ee509..1eeabc7b1 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 {
+ MaybeArray,
booleanColumnSchema,
- numberColumnSchema,
- textColumnSchema,
- dateColumnSchema,
- jsonColumnSchema,
columnSchema,
- tableSchema,
- referenceableColumnSchema,
+ columnsSchema,
+ dateColumnSchema,
+ dbConfigSchema,
indexSchema,
+ jsonColumnSchema,
numberColumnOptsSchema,
+ numberColumnSchema,
+ referenceableColumnSchema,
+ tableSchema,
textColumnOptsSchema,
- columnsSchema,
- MaybeArray,
- dbConfigSchema,
+ textColumnSchema,
} from './schemas.js';
export type Indexes = Record<string, z.infer<typeof indexSchema>>;