drizzle-kit 0.20.14-c82ab68 → 0.20.14-d8f1e46

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 (45) hide show
  1. package/bin.cjs +7142 -7442
  2. package/cli/commands/migrate.d.ts +24 -24
  3. package/cli/commands/mysqlIntrospect.d.ts +8 -8
  4. package/cli/commands/mysqlPushUtils.d.ts +2 -2
  5. package/cli/commands/mysqlUp.d.ts +2 -2
  6. package/cli/commands/pgConnect.d.ts +1 -1
  7. package/cli/commands/pgIntrospect.d.ts +9 -12
  8. package/cli/commands/pgPushUtils.d.ts +2 -2
  9. package/cli/commands/pgUp.d.ts +2 -2
  10. package/cli/commands/sqliteIntrospect.d.ts +9 -9
  11. package/cli/commands/sqlitePushUtils.d.ts +3 -3
  12. package/cli/commands/sqliteUtils.d.ts +162 -0
  13. package/cli/commands/upFolders.d.ts +1 -1
  14. package/cli/commands/utils.d.ts +259 -14
  15. package/cli/validations/common.d.ts +7 -205
  16. package/cli/validations/mysql.d.ts +1 -6
  17. package/cli/validations/pg.d.ts +1 -6
  18. package/cli/views.d.ts +1 -1
  19. package/global.d.ts +1 -1
  20. package/index.d.mts +6 -8
  21. package/index.d.ts +6 -8
  22. package/index.js +0 -1
  23. package/introspect-mysql.d.ts +1 -1
  24. package/introspect-pg.d.ts +2 -5
  25. package/introspect-sqlite.d.ts +1 -1
  26. package/jsonStatements.d.ts +1 -1
  27. package/package.json +2 -3
  28. package/payload.d.mts +988 -18
  29. package/payload.d.ts +988 -18
  30. package/payload.js +1616 -13426
  31. package/payload.mjs +1538 -2213
  32. package/schemaValidator.d.ts +40 -40
  33. package/serializer/mysqlSchema.d.ts +616 -1854
  34. package/serializer/mysqlSerializer.d.ts +2 -2
  35. package/serializer/pgSchema.d.ts +684 -1009
  36. package/serializer/sqliteSchema.d.ts +570 -144
  37. package/serializer/sqliteSerializer.d.ts +2 -2
  38. package/snapshotsDiffer.d.ts +20 -24
  39. package/utils-studio.js +15 -390
  40. package/utils-studio.mjs +15 -389
  41. package/utils.d.ts +12 -12
  42. package/utils.js +735 -849
  43. package/utils.mjs +736 -849
  44. package/cli/validations/cli.d.ts +0 -104
  45. package/cli/validations/sqlite.d.ts +0 -382
@@ -1,8 +1,8 @@
1
1
  import { TypeOf } from "zod";
2
- export declare const dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
2
+ declare const dialect: import("zod").ZodEnum<["pg", "mysql", "sqlite"]>;
3
3
  export type Dialect = TypeOf<typeof dialect>;
4
4
  declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObject<{
5
- version: import("zod").ZodLiteral<"6">;
5
+ version: import("zod").ZodLiteral<"5">;
6
6
  dialect: import("zod").ZodEnum<["pg"]>;
7
7
  tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
8
8
  name: import("zod").ZodString;
@@ -86,6 +86,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
86
86
  }>>;
87
87
  schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
88
88
  }, "strict", import("zod").ZodTypeAny, {
89
+ version: "5";
90
+ dialect: "pg";
89
91
  tables: Record<string, {
90
92
  name: string;
91
93
  columns: Record<string, {
@@ -104,14 +106,14 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
104
106
  compositePrimaryKeys: Record<string, string>;
105
107
  uniqueConstraints: Record<string, string>;
106
108
  }>;
107
- version: "6";
108
- dialect: "pg";
109
109
  schemas: Record<string, string>;
110
110
  enums: Record<string, {
111
111
  name: string;
112
112
  values: Record<string, string>;
113
113
  }>;
114
114
  }, {
115
+ version: "5";
116
+ dialect: "pg";
115
117
  tables: Record<string, {
116
118
  name: string;
117
119
  columns: Record<string, {
@@ -130,8 +132,6 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
130
132
  compositePrimaryKeys: Record<string, string>;
131
133
  uniqueConstraints: Record<string, string>;
132
134
  }>;
133
- version: "6";
134
- dialect: "pg";
135
135
  schemas: Record<string, string>;
136
136
  enums: Record<string, {
137
137
  name: string;
@@ -207,6 +207,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
207
207
  }>>;
208
208
  schemas: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
209
209
  }, "strict", import("zod").ZodTypeAny, {
210
+ version: "5";
211
+ dialect: "mysql";
210
212
  tables: Record<string, {
211
213
  schema?: string | undefined;
212
214
  name: string;
@@ -224,10 +226,10 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
224
226
  compositePrimaryKeys: Record<string, string>;
225
227
  uniqueConstraints: Record<string, string>;
226
228
  }>;
227
- version: "5";
228
- dialect: "mysql";
229
229
  schemas: Record<string, string>;
230
230
  }, {
231
+ version: "5";
232
+ dialect: "mysql";
231
233
  tables: Record<string, {
232
234
  schema?: string | undefined;
233
235
  uniqueConstraints?: Record<string, string> | undefined;
@@ -245,8 +247,6 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
245
247
  foreignKeys: Record<string, string>;
246
248
  compositePrimaryKeys: Record<string, string>;
247
249
  }>;
248
- version: "5";
249
- dialect: "mysql";
250
250
  schemas: Record<string, string>;
251
251
  }>, import("zod").ZodObject<{
252
252
  version: import("zod").ZodLiteral<"5">;
@@ -311,6 +311,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
311
311
  enums: import("zod").ZodAny;
312
312
  }, "strict", import("zod").ZodTypeAny, {
313
313
  enums?: any;
314
+ version: "5";
315
+ dialect: "sqlite";
314
316
  tables: Record<string, {
315
317
  name: string;
316
318
  columns: Record<string, {
@@ -326,10 +328,10 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
326
328
  compositePrimaryKeys: Record<string, string>;
327
329
  uniqueConstraints: Record<string, string>;
328
330
  }>;
329
- version: "5";
330
- dialect: "sqlite";
331
331
  }, {
332
332
  enums?: any;
333
+ version: "5";
334
+ dialect: "sqlite";
333
335
  tables: Record<string, {
334
336
  uniqueConstraints?: Record<string, string> | undefined;
335
337
  name: string;
@@ -345,11 +347,9 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
345
347
  foreignKeys: Record<string, string>;
346
348
  compositePrimaryKeys: Record<string, string>;
347
349
  }>;
348
- version: "5";
349
- dialect: "sqlite";
350
350
  }>]>;
351
351
  declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<import("zod").extendShape<{
352
- version: import("zod").ZodLiteral<"6">;
352
+ version: import("zod").ZodLiteral<"5">;
353
353
  dialect: import("zod").ZodLiteral<"pg">;
354
354
  tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
355
355
  name: import("zod").ZodString;
@@ -603,6 +603,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
603
603
  } | undefined>;
604
604
  } | undefined>;
605
605
  } | undefined;
606
+ id: string;
607
+ prevId: string;
608
+ version: "5";
609
+ dialect: "pg";
606
610
  tables: Record<string, {
607
611
  name: string;
608
612
  columns: Record<string, {
@@ -641,10 +645,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
641
645
  nullsNotDistinct: boolean;
642
646
  }>;
643
647
  }>;
644
- id: string;
645
- prevId: string;
646
- version: "6";
647
- dialect: "pg";
648
648
  schemas: Record<string, string>;
649
649
  _meta: {
650
650
  columns: Record<string, string>;
@@ -665,6 +665,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
665
665
  } | undefined>;
666
666
  } | undefined>;
667
667
  } | undefined;
668
+ id: string;
669
+ prevId: string;
670
+ version: "5";
671
+ dialect: "pg";
668
672
  tables: Record<string, {
669
673
  uniqueConstraints?: Record<string, {
670
674
  name: string;
@@ -703,10 +707,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
703
707
  columns: string[];
704
708
  }>;
705
709
  }>;
706
- id: string;
707
- prevId: string;
708
- version: "6";
709
- dialect: "pg";
710
710
  schemas: Record<string, string>;
711
711
  _meta: {
712
712
  columns: Record<string, string>;
@@ -718,7 +718,7 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
718
718
  values: Record<string, string>;
719
719
  }>;
720
720
  }>, import("zod").ZodObject<import("zod").extendShape<{
721
- version: import("zod").ZodLiteral<"6">;
721
+ version: import("zod").ZodLiteral<"5">;
722
722
  dialect: import("zod").ZodLiteral<"mysql">;
723
723
  tables: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
724
724
  name: import("zod").ZodString;
@@ -946,6 +946,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
946
946
  } | undefined>;
947
947
  } | undefined>;
948
948
  } | undefined;
949
+ id: string;
950
+ prevId: string;
951
+ version: "5";
952
+ dialect: "mysql";
949
953
  tables: Record<string, {
950
954
  schema?: string | undefined;
951
955
  name: string;
@@ -984,10 +988,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
984
988
  columns: string[];
985
989
  }>;
986
990
  }>;
987
- id: string;
988
- prevId: string;
989
- version: "6";
990
- dialect: "mysql";
991
991
  schemas: Record<string, string>;
992
992
  _meta: {
993
993
  columns: Record<string, string>;
@@ -1002,6 +1002,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
1002
1002
  } | undefined>;
1003
1003
  } | undefined>;
1004
1004
  } | undefined;
1005
+ id: string;
1006
+ prevId: string;
1007
+ version: "5";
1008
+ dialect: "mysql";
1005
1009
  tables: Record<string, {
1006
1010
  schema?: string | undefined;
1007
1011
  uniqueConstraints?: Record<string, {
@@ -1040,10 +1044,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
1040
1044
  columns: string[];
1041
1045
  }>;
1042
1046
  }>;
1043
- id: string;
1044
- prevId: string;
1045
- version: "6";
1046
- dialect: "mysql";
1047
1047
  schemas: Record<string, string>;
1048
1048
  _meta: {
1049
1049
  columns: Record<string, string>;
@@ -1220,6 +1220,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
1220
1220
  id: import("zod").ZodString;
1221
1221
  prevId: import("zod").ZodString;
1222
1222
  }>, "strict", import("zod").ZodTypeAny, {
1223
+ id: string;
1224
+ prevId: string;
1225
+ version: "5";
1226
+ dialect: "sqlite";
1223
1227
  tables: Record<string, {
1224
1228
  name: string;
1225
1229
  columns: Record<string, {
@@ -1254,16 +1258,16 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
1254
1258
  columns: string[];
1255
1259
  }>;
1256
1260
  }>;
1257
- id: string;
1258
- prevId: string;
1259
- version: "5";
1260
- dialect: "sqlite";
1261
1261
  _meta: {
1262
1262
  columns: Record<string, string>;
1263
1263
  tables: Record<string, string>;
1264
1264
  };
1265
1265
  enums: {};
1266
1266
  }, {
1267
+ id: string;
1268
+ prevId: string;
1269
+ version: "5";
1270
+ dialect: "sqlite";
1267
1271
  tables: Record<string, {
1268
1272
  uniqueConstraints?: Record<string, {
1269
1273
  name: string;
@@ -1298,10 +1302,6 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
1298
1302
  columns: string[];
1299
1303
  }>;
1300
1304
  }>;
1301
- id: string;
1302
- prevId: string;
1303
- version: "5";
1304
- dialect: "sqlite";
1305
1305
  _meta: {
1306
1306
  columns: Record<string, string>;
1307
1307
  tables: Record<string, string>;