drizzle-kit 0.27.1-4d56096 → 0.27.1-93aad0e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.d.mts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
2
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
3
  import { PgDatabase } from 'drizzle-orm/pg-core';
4
- import { C as CasingType, a as Config } from './index-BfiZoTqG.mjs';
4
+ import { C as CasingType } from './common-DYjgLS6u.mjs';
5
5
  import * as zod from 'zod';
6
6
  import { TypeOf } from 'zod';
7
- import 'tls';
8
7
 
9
8
  declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
10
9
  version: zod.ZodLiteral<"5">;
@@ -783,10 +782,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
783
782
  using: zod.ZodOptional<zod.ZodString>;
784
783
  withCheck: zod.ZodOptional<zod.ZodString>;
785
784
  on: zod.ZodOptional<zod.ZodString>;
785
+ schema: zod.ZodOptional<zod.ZodString>;
786
786
  }, "strict", zod.ZodTypeAny, {
787
787
  name: string;
788
788
  using?: string | undefined;
789
789
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
790
+ schema?: string | undefined;
790
791
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
791
792
  to?: string[] | undefined;
792
793
  withCheck?: string | undefined;
@@ -795,6 +796,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
795
796
  name: string;
796
797
  using?: string | undefined;
797
798
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
799
+ schema?: string | undefined;
798
800
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
799
801
  to?: string[] | undefined;
800
802
  withCheck?: string | undefined;
@@ -882,6 +884,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
882
884
  name: string;
883
885
  using?: string | undefined;
884
886
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
887
+ schema?: string | undefined;
885
888
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
886
889
  to?: string[] | undefined;
887
890
  withCheck?: string | undefined;
@@ -959,6 +962,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
959
962
  name: string;
960
963
  using?: string | undefined;
961
964
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
965
+ schema?: string | undefined;
962
966
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
963
967
  to?: string[] | undefined;
964
968
  withCheck?: string | undefined;
@@ -1329,10 +1333,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1329
1333
  using: zod.ZodOptional<zod.ZodString>;
1330
1334
  withCheck: zod.ZodOptional<zod.ZodString>;
1331
1335
  on: zod.ZodOptional<zod.ZodString>;
1336
+ schema: zod.ZodOptional<zod.ZodString>;
1332
1337
  }, "strict", zod.ZodTypeAny, {
1333
1338
  name: string;
1334
1339
  using?: string | undefined;
1335
1340
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1341
+ schema?: string | undefined;
1336
1342
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1337
1343
  to?: string[] | undefined;
1338
1344
  withCheck?: string | undefined;
@@ -1341,6 +1347,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1341
1347
  name: string;
1342
1348
  using?: string | undefined;
1343
1349
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1350
+ schema?: string | undefined;
1344
1351
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1345
1352
  to?: string[] | undefined;
1346
1353
  withCheck?: string | undefined;
@@ -1486,6 +1493,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1486
1493
  name: string;
1487
1494
  using?: string | undefined;
1488
1495
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1496
+ schema?: string | undefined;
1489
1497
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1490
1498
  to?: string[] | undefined;
1491
1499
  withCheck?: string | undefined;
@@ -1571,6 +1579,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1571
1579
  name: string;
1572
1580
  using?: string | undefined;
1573
1581
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1582
+ schema?: string | undefined;
1574
1583
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1575
1584
  to?: string[] | undefined;
1576
1585
  withCheck?: string | undefined;
@@ -1674,6 +1683,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1674
1683
  name: string;
1675
1684
  using?: string | undefined;
1676
1685
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1686
+ schema?: string | undefined;
1677
1687
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1678
1688
  to?: string[] | undefined;
1679
1689
  withCheck?: string | undefined;
@@ -1769,6 +1779,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1769
1779
  name: string;
1770
1780
  using?: string | undefined;
1771
1781
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1782
+ schema?: string | undefined;
1772
1783
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1773
1784
  to?: string[] | undefined;
1774
1785
  withCheck?: string | undefined;
@@ -2274,7 +2285,7 @@ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
2274
2285
  type DrizzleMySQLSnapshotJSON = MySqlSchema;
2275
2286
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2276
2287
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2277
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2288
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
2278
2289
  hasDataLoss: boolean;
2279
2290
  warnings: string[];
2280
2291
  statementsToExecute: string[];
@@ -2364,6 +2375,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2364
2375
  }>;
2365
2376
  policies: Record<string, {
2366
2377
  name: string;
2378
+ schema?: string | undefined;
2367
2379
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2368
2380
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2369
2381
  to?: string[] | undefined;
@@ -2379,6 +2391,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2379
2391
  }>;
2380
2392
  policies: Record<string, {
2381
2393
  name: string;
2394
+ schema?: string | undefined;
2382
2395
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2383
2396
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2384
2397
  to?: string[] | undefined;
package/api.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  import { LibSQLDatabase } from 'drizzle-orm/libsql';
2
2
  import { MySql2Database } from 'drizzle-orm/mysql2';
3
3
  import { PgDatabase } from 'drizzle-orm/pg-core';
4
- import { C as CasingType, a as Config } from './index-BfiZoTqG.js';
4
+ import { C as CasingType } from './common-DYjgLS6u.js';
5
5
  import * as zod from 'zod';
6
6
  import { TypeOf } from 'zod';
7
- import 'tls';
8
7
 
9
8
  declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
10
9
  version: zod.ZodLiteral<"5">;
@@ -783,10 +782,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
783
782
  using: zod.ZodOptional<zod.ZodString>;
784
783
  withCheck: zod.ZodOptional<zod.ZodString>;
785
784
  on: zod.ZodOptional<zod.ZodString>;
785
+ schema: zod.ZodOptional<zod.ZodString>;
786
786
  }, "strict", zod.ZodTypeAny, {
787
787
  name: string;
788
788
  using?: string | undefined;
789
789
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
790
+ schema?: string | undefined;
790
791
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
791
792
  to?: string[] | undefined;
792
793
  withCheck?: string | undefined;
@@ -795,6 +796,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
795
796
  name: string;
796
797
  using?: string | undefined;
797
798
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
799
+ schema?: string | undefined;
798
800
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
799
801
  to?: string[] | undefined;
800
802
  withCheck?: string | undefined;
@@ -882,6 +884,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
882
884
  name: string;
883
885
  using?: string | undefined;
884
886
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
887
+ schema?: string | undefined;
885
888
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
886
889
  to?: string[] | undefined;
887
890
  withCheck?: string | undefined;
@@ -959,6 +962,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
959
962
  name: string;
960
963
  using?: string | undefined;
961
964
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
965
+ schema?: string | undefined;
962
966
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
963
967
  to?: string[] | undefined;
964
968
  withCheck?: string | undefined;
@@ -1329,10 +1333,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1329
1333
  using: zod.ZodOptional<zod.ZodString>;
1330
1334
  withCheck: zod.ZodOptional<zod.ZodString>;
1331
1335
  on: zod.ZodOptional<zod.ZodString>;
1336
+ schema: zod.ZodOptional<zod.ZodString>;
1332
1337
  }, "strict", zod.ZodTypeAny, {
1333
1338
  name: string;
1334
1339
  using?: string | undefined;
1335
1340
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1341
+ schema?: string | undefined;
1336
1342
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1337
1343
  to?: string[] | undefined;
1338
1344
  withCheck?: string | undefined;
@@ -1341,6 +1347,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1341
1347
  name: string;
1342
1348
  using?: string | undefined;
1343
1349
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1350
+ schema?: string | undefined;
1344
1351
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1345
1352
  to?: string[] | undefined;
1346
1353
  withCheck?: string | undefined;
@@ -1486,6 +1493,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1486
1493
  name: string;
1487
1494
  using?: string | undefined;
1488
1495
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1496
+ schema?: string | undefined;
1489
1497
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1490
1498
  to?: string[] | undefined;
1491
1499
  withCheck?: string | undefined;
@@ -1571,6 +1579,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1571
1579
  name: string;
1572
1580
  using?: string | undefined;
1573
1581
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1582
+ schema?: string | undefined;
1574
1583
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1575
1584
  to?: string[] | undefined;
1576
1585
  withCheck?: string | undefined;
@@ -1674,6 +1683,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1674
1683
  name: string;
1675
1684
  using?: string | undefined;
1676
1685
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1686
+ schema?: string | undefined;
1677
1687
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1678
1688
  to?: string[] | undefined;
1679
1689
  withCheck?: string | undefined;
@@ -1769,6 +1779,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1769
1779
  name: string;
1770
1780
  using?: string | undefined;
1771
1781
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1782
+ schema?: string | undefined;
1772
1783
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1773
1784
  to?: string[] | undefined;
1774
1785
  withCheck?: string | undefined;
@@ -2274,7 +2285,7 @@ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
2274
2285
  type DrizzleMySQLSnapshotJSON = MySqlSchema;
2275
2286
  declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
2276
2287
  declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
2277
- declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
2288
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[]) => Promise<{
2278
2289
  hasDataLoss: boolean;
2279
2290
  warnings: string[];
2280
2291
  statementsToExecute: string[];
@@ -2364,6 +2375,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2364
2375
  }>;
2365
2376
  policies: Record<string, {
2366
2377
  name: string;
2378
+ schema?: string | undefined;
2367
2379
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2368
2380
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2369
2381
  to?: string[] | undefined;
@@ -2379,6 +2391,7 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2379
2391
  }>;
2380
2392
  policies: Record<string, {
2381
2393
  name: string;
2394
+ schema?: string | undefined;
2382
2395
  as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2383
2396
  for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2384
2397
  to?: string[] | undefined;