drizzle-kit 0.19.13-3b2cf28 → 0.19.13-ad1f24b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.d.ts +7 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.19.13-3b2cf28",
3
+ "version": "0.19.13-ad1f24b",
4
4
  "repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
5
5
  "author": "Drizzle Team",
6
6
  "license": "MIT",
package/utils.d.ts CHANGED
@@ -1,6 +1,9 @@
1
+ import { AnyMySqlTable } from "drizzle-orm/mysql-core";
2
+ import { Relations } from "drizzle-orm";
1
3
  import { AnyPgTable, PgDatabase } from "drizzle-orm/pg-core";
2
4
  import { DbConnection } from ".";
3
5
  import { PgSchema } from "./serializer/pgSchema";
6
+ import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
4
7
  export type DrizzleSnapshotJSON = PgSchema;
5
8
  export declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string) => DrizzleSnapshotJSON;
6
9
  export declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
@@ -13,17 +16,17 @@ export declare const pushSchema: (imports: Record<string, unknown>, db: PgDataba
13
16
  export declare const prepareFrom: (connection: DbConnection) => Promise<{
14
17
  db: import("drizzle-orm/node-postgres").NodePgDatabase<Record<string, never>>;
15
18
  type: "pg";
16
- schema: Record<string, AnyPgTable<{}> | import("drizzle-orm").Relations> | undefined;
19
+ schema: Record<string, AnyPgTable<{}> | Relations> | undefined;
17
20
  } | {
18
21
  db: import("drizzle-orm/mysql2").MySql2Database<Record<string, never>>;
19
22
  type: "mysql";
20
- schema: Record<string, import("drizzle-orm").Relations> | undefined;
23
+ schema: Record<string, AnyMySqlTable<{}> | Relations> | undefined;
21
24
  } | {
22
25
  db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>>;
23
26
  type: "sqlite";
24
- schema: Record<string, import("drizzle-orm").Relations> | undefined;
27
+ schema: Record<string, AnySQLiteTable<{}> | Relations> | undefined;
25
28
  } | {
26
29
  db: import("drizzle-orm/libsql").LibSQLDatabase<Record<string, never>>;
27
30
  type: "sqlite";
28
- schema: Record<string, import("drizzle-orm").Relations> | undefined;
31
+ schema: Record<string, AnySQLiteTable<{}> | Relations> | undefined;
29
32
  }>;