drizzle-kit 0.31.1 → 0.31.2-6baabce

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.
Files changed (8) hide show
  1. package/api.d.mts +24 -24
  2. package/api.d.ts +24 -24
  3. package/api.js +3000 -2347
  4. package/api.mjs +3003 -2350
  5. package/bin.cjs +4960 -4606
  6. package/package.json +10 -11
  7. package/utils.js +90 -106
  8. package/utils.mjs +90 -106
package/api.d.mts CHANGED
@@ -7,7 +7,7 @@ import * as zod from 'zod';
7
7
  import { TypeOf } from 'zod';
8
8
  import 'tls';
9
9
 
10
- declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
10
+ declare const schema$2: zod.ZodObject<{
11
11
  version: zod.ZodLiteral<"5">;
12
12
  dialect: zod.ZodLiteral<"mysql">;
13
13
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -221,7 +221,7 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
221
221
  name: string;
222
222
  }> | undefined;
223
223
  }>>;
224
- views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
224
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
225
225
  name: zod.ZodString;
226
226
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
227
227
  name: zod.ZodString;
@@ -268,11 +268,11 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
268
268
  }>>;
269
269
  definition: zod.ZodOptional<zod.ZodString>;
270
270
  isExisting: zod.ZodBoolean;
271
- }, {
271
+ } & {
272
272
  algorithm: zod.ZodEnum<["undefined", "merge", "temptable"]>;
273
273
  sqlSecurity: zod.ZodEnum<["definer", "invoker"]>;
274
274
  withCheckOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;
275
- }>, "strict", zod.ZodTypeAny, {
275
+ }, "strict", zod.ZodTypeAny, {
276
276
  name: string;
277
277
  columns: Record<string, {
278
278
  type: string;
@@ -381,10 +381,10 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
381
381
  } | undefined>;
382
382
  } | undefined> | undefined;
383
383
  }>>;
384
- }, {
384
+ } & {
385
385
  id: zod.ZodString;
386
386
  prevId: zod.ZodString;
387
- }>, "strip", zod.ZodTypeAny, {
387
+ }, "strip", zod.ZodTypeAny, {
388
388
  version: "5";
389
389
  dialect: "mysql";
390
390
  tables: Record<string, {
@@ -561,7 +561,7 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
561
561
  }>;
562
562
  type MySqlSchema = TypeOf<typeof schema$2>;
563
563
 
564
- declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
564
+ declare const pgSchema: zod.ZodObject<{
565
565
  version: zod.ZodLiteral<"7">;
566
566
  dialect: zod.ZodLiteral<"postgresql">;
567
567
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -587,7 +587,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
587
587
  type: "stored";
588
588
  as: string;
589
589
  }>>;
590
- identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
590
+ identity: zod.ZodOptional<zod.ZodObject<{
591
591
  name: zod.ZodString;
592
592
  increment: zod.ZodOptional<zod.ZodString>;
593
593
  minValue: zod.ZodOptional<zod.ZodString>;
@@ -596,9 +596,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
596
596
  cache: zod.ZodOptional<zod.ZodString>;
597
597
  cycle: zod.ZodOptional<zod.ZodBoolean>;
598
598
  schema: zod.ZodString;
599
- }, {
599
+ } & {
600
600
  type: zod.ZodEnum<["always", "byDefault"]>;
601
- }>, "strip", zod.ZodTypeAny, {
601
+ }, "strip", zod.ZodTypeAny, {
602
602
  type: "always" | "byDefault";
603
603
  name: string;
604
604
  schema: string;
@@ -1009,7 +1009,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1009
1009
  type: "stored";
1010
1010
  as: string;
1011
1011
  }>>;
1012
- identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
1012
+ identity: zod.ZodOptional<zod.ZodObject<{
1013
1013
  name: zod.ZodString;
1014
1014
  increment: zod.ZodOptional<zod.ZodString>;
1015
1015
  minValue: zod.ZodOptional<zod.ZodString>;
@@ -1018,9 +1018,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1018
1018
  cache: zod.ZodOptional<zod.ZodString>;
1019
1019
  cycle: zod.ZodOptional<zod.ZodBoolean>;
1020
1020
  schema: zod.ZodString;
1021
- }, {
1021
+ } & {
1022
1022
  type: zod.ZodEnum<["always", "byDefault"]>;
1023
- }>, "strip", zod.ZodTypeAny, {
1023
+ }, "strip", zod.ZodTypeAny, {
1024
1024
  type: "always" | "byDefault";
1025
1025
  name: string;
1026
1026
  schema: string;
@@ -1094,11 +1094,11 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1094
1094
  }>>;
1095
1095
  definition: zod.ZodOptional<zod.ZodString>;
1096
1096
  materialized: zod.ZodBoolean;
1097
- with: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
1097
+ with: zod.ZodOptional<zod.ZodObject<{
1098
1098
  checkOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;
1099
1099
  securityBarrier: zod.ZodOptional<zod.ZodBoolean>;
1100
1100
  securityInvoker: zod.ZodOptional<zod.ZodBoolean>;
1101
- }, {
1101
+ } & {
1102
1102
  fillfactor: zod.ZodOptional<zod.ZodNumber>;
1103
1103
  toastTupleTarget: zod.ZodOptional<zod.ZodNumber>;
1104
1104
  parallelWorkers: zod.ZodOptional<zod.ZodNumber>;
@@ -1117,7 +1117,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1117
1117
  autovacuumMultixactFreezeTableAge: zod.ZodOptional<zod.ZodNumber>;
1118
1118
  logAutovacuumMinDuration: zod.ZodOptional<zod.ZodNumber>;
1119
1119
  userCatalogTable: zod.ZodOptional<zod.ZodBoolean>;
1120
- }>, "strict", zod.ZodTypeAny, {
1120
+ }, "strict", zod.ZodTypeAny, {
1121
1121
  checkOption?: "local" | "cascaded" | undefined;
1122
1122
  securityBarrier?: boolean | undefined;
1123
1123
  securityInvoker?: boolean | undefined;
@@ -1420,10 +1420,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1420
1420
  } | undefined>;
1421
1421
  } | undefined>;
1422
1422
  }>>;
1423
- }, {
1423
+ } & {
1424
1424
  id: zod.ZodString;
1425
1425
  prevId: zod.ZodString;
1426
- }>, "strip", zod.ZodTypeAny, {
1426
+ }, "strip", zod.ZodTypeAny, {
1427
1427
  version: "7";
1428
1428
  dialect: "postgresql";
1429
1429
  tables: Record<string, {
@@ -1806,7 +1806,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1806
1806
  }>;
1807
1807
  type PgSchema = TypeOf<typeof pgSchema>;
1808
1808
 
1809
- declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
1809
+ declare const schema$1: zod.ZodObject<{
1810
1810
  version: zod.ZodLiteral<"1">;
1811
1811
  dialect: zod.ZodLiteral<"singlestore">;
1812
1812
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -2027,10 +2027,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
2027
2027
  } | undefined>;
2028
2028
  } | undefined> | undefined;
2029
2029
  }>>;
2030
- }, {
2030
+ } & {
2031
2031
  id: zod.ZodString;
2032
2032
  prevId: zod.ZodString;
2033
- }>, "strip", zod.ZodTypeAny, {
2033
+ }, "strip", zod.ZodTypeAny, {
2034
2034
  version: "1";
2035
2035
  dialect: "singlestore";
2036
2036
  tables: Record<string, {
@@ -2139,7 +2139,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
2139
2139
  }>;
2140
2140
  type SingleStoreSchema = TypeOf<typeof schema$1>;
2141
2141
 
2142
- declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2142
+ declare const schema: zod.ZodObject<{
2143
2143
  version: zod.ZodLiteral<"6">;
2144
2144
  dialect: zod.ZodEnum<["sqlite"]>;
2145
2145
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -2457,10 +2457,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2457
2457
  } | undefined>;
2458
2458
  } | undefined> | undefined;
2459
2459
  }>>;
2460
- }, {
2460
+ } & {
2461
2461
  id: zod.ZodString;
2462
2462
  prevId: zod.ZodString;
2463
- }>, "strict", zod.ZodTypeAny, {
2463
+ }, "strict", zod.ZodTypeAny, {
2464
2464
  version: "6";
2465
2465
  dialect: "sqlite";
2466
2466
  tables: Record<string, {
package/api.d.ts CHANGED
@@ -7,7 +7,7 @@ import * as zod from 'zod';
7
7
  import { TypeOf } from 'zod';
8
8
  import 'tls';
9
9
 
10
- declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
10
+ declare const schema$2: zod.ZodObject<{
11
11
  version: zod.ZodLiteral<"5">;
12
12
  dialect: zod.ZodLiteral<"mysql">;
13
13
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -221,7 +221,7 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
221
221
  name: string;
222
222
  }> | undefined;
223
223
  }>>;
224
- views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
224
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
225
225
  name: zod.ZodString;
226
226
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
227
227
  name: zod.ZodString;
@@ -268,11 +268,11 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
268
268
  }>>;
269
269
  definition: zod.ZodOptional<zod.ZodString>;
270
270
  isExisting: zod.ZodBoolean;
271
- }, {
271
+ } & {
272
272
  algorithm: zod.ZodEnum<["undefined", "merge", "temptable"]>;
273
273
  sqlSecurity: zod.ZodEnum<["definer", "invoker"]>;
274
274
  withCheckOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;
275
- }>, "strict", zod.ZodTypeAny, {
275
+ }, "strict", zod.ZodTypeAny, {
276
276
  name: string;
277
277
  columns: Record<string, {
278
278
  type: string;
@@ -381,10 +381,10 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
381
381
  } | undefined>;
382
382
  } | undefined> | undefined;
383
383
  }>>;
384
- }, {
384
+ } & {
385
385
  id: zod.ZodString;
386
386
  prevId: zod.ZodString;
387
- }>, "strip", zod.ZodTypeAny, {
387
+ }, "strip", zod.ZodTypeAny, {
388
388
  version: "5";
389
389
  dialect: "mysql";
390
390
  tables: Record<string, {
@@ -561,7 +561,7 @@ declare const schema$2: zod.ZodObject<zod.objectUtil.extendShape<{
561
561
  }>;
562
562
  type MySqlSchema = TypeOf<typeof schema$2>;
563
563
 
564
- declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
564
+ declare const pgSchema: zod.ZodObject<{
565
565
  version: zod.ZodLiteral<"7">;
566
566
  dialect: zod.ZodLiteral<"postgresql">;
567
567
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -587,7 +587,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
587
587
  type: "stored";
588
588
  as: string;
589
589
  }>>;
590
- identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
590
+ identity: zod.ZodOptional<zod.ZodObject<{
591
591
  name: zod.ZodString;
592
592
  increment: zod.ZodOptional<zod.ZodString>;
593
593
  minValue: zod.ZodOptional<zod.ZodString>;
@@ -596,9 +596,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
596
596
  cache: zod.ZodOptional<zod.ZodString>;
597
597
  cycle: zod.ZodOptional<zod.ZodBoolean>;
598
598
  schema: zod.ZodString;
599
- }, {
599
+ } & {
600
600
  type: zod.ZodEnum<["always", "byDefault"]>;
601
- }>, "strip", zod.ZodTypeAny, {
601
+ }, "strip", zod.ZodTypeAny, {
602
602
  type: "always" | "byDefault";
603
603
  name: string;
604
604
  schema: string;
@@ -1009,7 +1009,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1009
1009
  type: "stored";
1010
1010
  as: string;
1011
1011
  }>>;
1012
- identity: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
1012
+ identity: zod.ZodOptional<zod.ZodObject<{
1013
1013
  name: zod.ZodString;
1014
1014
  increment: zod.ZodOptional<zod.ZodString>;
1015
1015
  minValue: zod.ZodOptional<zod.ZodString>;
@@ -1018,9 +1018,9 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1018
1018
  cache: zod.ZodOptional<zod.ZodString>;
1019
1019
  cycle: zod.ZodOptional<zod.ZodBoolean>;
1020
1020
  schema: zod.ZodString;
1021
- }, {
1021
+ } & {
1022
1022
  type: zod.ZodEnum<["always", "byDefault"]>;
1023
- }>, "strip", zod.ZodTypeAny, {
1023
+ }, "strip", zod.ZodTypeAny, {
1024
1024
  type: "always" | "byDefault";
1025
1025
  name: string;
1026
1026
  schema: string;
@@ -1094,11 +1094,11 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1094
1094
  }>>;
1095
1095
  definition: zod.ZodOptional<zod.ZodString>;
1096
1096
  materialized: zod.ZodBoolean;
1097
- with: zod.ZodOptional<zod.ZodObject<zod.objectUtil.extendShape<{
1097
+ with: zod.ZodOptional<zod.ZodObject<{
1098
1098
  checkOption: zod.ZodOptional<zod.ZodEnum<["local", "cascaded"]>>;
1099
1099
  securityBarrier: zod.ZodOptional<zod.ZodBoolean>;
1100
1100
  securityInvoker: zod.ZodOptional<zod.ZodBoolean>;
1101
- }, {
1101
+ } & {
1102
1102
  fillfactor: zod.ZodOptional<zod.ZodNumber>;
1103
1103
  toastTupleTarget: zod.ZodOptional<zod.ZodNumber>;
1104
1104
  parallelWorkers: zod.ZodOptional<zod.ZodNumber>;
@@ -1117,7 +1117,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1117
1117
  autovacuumMultixactFreezeTableAge: zod.ZodOptional<zod.ZodNumber>;
1118
1118
  logAutovacuumMinDuration: zod.ZodOptional<zod.ZodNumber>;
1119
1119
  userCatalogTable: zod.ZodOptional<zod.ZodBoolean>;
1120
- }>, "strict", zod.ZodTypeAny, {
1120
+ }, "strict", zod.ZodTypeAny, {
1121
1121
  checkOption?: "local" | "cascaded" | undefined;
1122
1122
  securityBarrier?: boolean | undefined;
1123
1123
  securityInvoker?: boolean | undefined;
@@ -1420,10 +1420,10 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1420
1420
  } | undefined>;
1421
1421
  } | undefined>;
1422
1422
  }>>;
1423
- }, {
1423
+ } & {
1424
1424
  id: zod.ZodString;
1425
1425
  prevId: zod.ZodString;
1426
- }>, "strip", zod.ZodTypeAny, {
1426
+ }, "strip", zod.ZodTypeAny, {
1427
1427
  version: "7";
1428
1428
  dialect: "postgresql";
1429
1429
  tables: Record<string, {
@@ -1806,7 +1806,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1806
1806
  }>;
1807
1807
  type PgSchema = TypeOf<typeof pgSchema>;
1808
1808
 
1809
- declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
1809
+ declare const schema$1: zod.ZodObject<{
1810
1810
  version: zod.ZodLiteral<"1">;
1811
1811
  dialect: zod.ZodLiteral<"singlestore">;
1812
1812
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -2027,10 +2027,10 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
2027
2027
  } | undefined>;
2028
2028
  } | undefined> | undefined;
2029
2029
  }>>;
2030
- }, {
2030
+ } & {
2031
2031
  id: zod.ZodString;
2032
2032
  prevId: zod.ZodString;
2033
- }>, "strip", zod.ZodTypeAny, {
2033
+ }, "strip", zod.ZodTypeAny, {
2034
2034
  version: "1";
2035
2035
  dialect: "singlestore";
2036
2036
  tables: Record<string, {
@@ -2139,7 +2139,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
2139
2139
  }>;
2140
2140
  type SingleStoreSchema = TypeOf<typeof schema$1>;
2141
2141
 
2142
- declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2142
+ declare const schema: zod.ZodObject<{
2143
2143
  version: zod.ZodLiteral<"6">;
2144
2144
  dialect: zod.ZodEnum<["sqlite"]>;
2145
2145
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -2457,10 +2457,10 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2457
2457
  } | undefined>;
2458
2458
  } | undefined> | undefined;
2459
2459
  }>>;
2460
- }, {
2460
+ } & {
2461
2461
  id: zod.ZodString;
2462
2462
  prevId: zod.ZodString;
2463
- }>, "strict", zod.ZodTypeAny, {
2463
+ }, "strict", zod.ZodTypeAny, {
2464
2464
  version: "6";
2465
2465
  dialect: "sqlite";
2466
2466
  tables: Record<string, {