drizzle-kit 0.20.14-a183d8b → 0.20.14-c82ab68
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +4957 -4374
- package/cli/commands/migrate.d.ts +17 -17
- package/cli/commands/mysqlIntrospect.d.ts +8 -8
- package/cli/commands/mysqlUp.d.ts +2 -2
- package/cli/commands/pgIntrospect.d.ts +11 -8
- package/cli/commands/pgUp.d.ts +2 -2
- package/cli/commands/sqliteIntrospect.d.ts +8 -8
- package/cli/commands/utils.d.ts +4 -5
- package/cli/{index.d.ts → validations/cli.d.ts} +30 -20
- package/cli/validations/common.d.ts +1 -1
- package/global.d.ts +1 -1
- package/index.js +1 -0
- package/introspect-pg.d.ts +4 -1
- package/jsonStatements.d.ts +1 -1
- package/package.json +3 -1
- package/payload.js +565 -113
- package/payload.mjs +564 -113
- package/schemaValidator.d.ts +39 -39
- package/serializer/mysqlSchema.d.ts +1991 -753
- package/serializer/pgSchema.d.ts +1113 -788
- package/serializer/sqliteSchema.d.ts +144 -570
- package/snapshotsDiffer.d.ts +24 -20
- package/utils-studio.js +379 -9
- package/utils-studio.mjs +378 -9
- package/utils.d.ts +12 -12
- package/utils.js +146 -85
- package/utils.mjs +145 -85
- package/cli/commands/check.d.ts +0 -2
- package/cli/commands/drop.d.ts +0 -4
- package/cli/commands/push.d.ts +0 -6
- package/cli/commands/sqliteUp.d.ts +0 -2
- package/cli/utils.d.ts +0 -12
- package/cli/validations/studio.d.ts +0 -593
- package/orm-extenstions/d1-driver/driver.d.ts +0 -8
- package/orm-extenstions/d1-driver/session.d.ts +0 -51
- package/orm-extenstions/d1-driver/wrangler-client.d.ts +0 -3
- package/serializer/studioUtils.d.ts +0 -65
- package/utils/certs.d.ts +0 -4
package/schemaValidator.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { TypeOf } from "zod";
|
|
2
2
|
export 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<"
|
5
|
+
version: import("zod").ZodLiteral<"6">;
|
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,8 +86,6 @@ 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";
|
91
89
|
tables: Record<string, {
|
92
90
|
name: string;
|
93
91
|
columns: Record<string, {
|
@@ -106,14 +104,14 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
106
104
|
compositePrimaryKeys: Record<string, string>;
|
107
105
|
uniqueConstraints: Record<string, string>;
|
108
106
|
}>;
|
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";
|
117
115
|
tables: Record<string, {
|
118
116
|
name: string;
|
119
117
|
columns: Record<string, {
|
@@ -132,6 +130,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
132
130
|
compositePrimaryKeys: Record<string, string>;
|
133
131
|
uniqueConstraints: Record<string, string>;
|
134
132
|
}>;
|
133
|
+
version: "6";
|
134
|
+
dialect: "pg";
|
135
135
|
schemas: Record<string, string>;
|
136
136
|
enums: Record<string, {
|
137
137
|
name: string;
|
@@ -207,8 +207,6 @@ 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";
|
212
210
|
tables: Record<string, {
|
213
211
|
schema?: string | undefined;
|
214
212
|
name: string;
|
@@ -226,10 +224,10 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
226
224
|
compositePrimaryKeys: Record<string, string>;
|
227
225
|
uniqueConstraints: Record<string, string>;
|
228
226
|
}>;
|
229
|
-
schemas: Record<string, string>;
|
230
|
-
}, {
|
231
227
|
version: "5";
|
232
228
|
dialect: "mysql";
|
229
|
+
schemas: Record<string, string>;
|
230
|
+
}, {
|
233
231
|
tables: Record<string, {
|
234
232
|
schema?: string | undefined;
|
235
233
|
uniqueConstraints?: Record<string, string> | undefined;
|
@@ -247,6 +245,8 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
247
245
|
foreignKeys: Record<string, string>;
|
248
246
|
compositePrimaryKeys: Record<string, string>;
|
249
247
|
}>;
|
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,8 +311,6 @@ 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";
|
316
314
|
tables: Record<string, {
|
317
315
|
name: string;
|
318
316
|
columns: Record<string, {
|
@@ -328,10 +326,10 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
328
326
|
compositePrimaryKeys: Record<string, string>;
|
329
327
|
uniqueConstraints: Record<string, string>;
|
330
328
|
}>;
|
331
|
-
}, {
|
332
|
-
enums?: any;
|
333
329
|
version: "5";
|
334
330
|
dialect: "sqlite";
|
331
|
+
}, {
|
332
|
+
enums?: any;
|
335
333
|
tables: Record<string, {
|
336
334
|
uniqueConstraints?: Record<string, string> | undefined;
|
337
335
|
name: string;
|
@@ -347,9 +345,11 @@ declare const commonSquashedSchema: import("zod").ZodUnion<[import("zod").ZodObj
|
|
347
345
|
foreignKeys: Record<string, string>;
|
348
346
|
compositePrimaryKeys: Record<string, string>;
|
349
347
|
}>;
|
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<"
|
352
|
+
version: import("zod").ZodLiteral<"6">;
|
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,10 +603,6 @@ 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";
|
610
606
|
tables: Record<string, {
|
611
607
|
name: string;
|
612
608
|
columns: Record<string, {
|
@@ -645,6 +641,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
645
641
|
nullsNotDistinct: boolean;
|
646
642
|
}>;
|
647
643
|
}>;
|
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,10 +665,6 @@ 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";
|
672
668
|
tables: Record<string, {
|
673
669
|
uniqueConstraints?: Record<string, {
|
674
670
|
name: string;
|
@@ -707,6 +703,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
707
703
|
columns: string[];
|
708
704
|
}>;
|
709
705
|
}>;
|
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<"
|
721
|
+
version: import("zod").ZodLiteral<"6">;
|
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,10 +946,6 @@ 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";
|
953
949
|
tables: Record<string, {
|
954
950
|
schema?: string | undefined;
|
955
951
|
name: string;
|
@@ -988,6 +984,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
988
984
|
columns: string[];
|
989
985
|
}>;
|
990
986
|
}>;
|
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,10 +1002,6 @@ 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";
|
1009
1005
|
tables: Record<string, {
|
1010
1006
|
schema?: string | undefined;
|
1011
1007
|
uniqueConstraints?: Record<string, {
|
@@ -1044,6 +1040,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1044
1040
|
columns: string[];
|
1045
1041
|
}>;
|
1046
1042
|
}>;
|
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,10 +1220,6 @@ 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";
|
1227
1223
|
tables: Record<string, {
|
1228
1224
|
name: string;
|
1229
1225
|
columns: Record<string, {
|
@@ -1258,16 +1254,16 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1258
1254
|
columns: string[];
|
1259
1255
|
}>;
|
1260
1256
|
}>;
|
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";
|
1271
1267
|
tables: Record<string, {
|
1272
1268
|
uniqueConstraints?: Record<string, {
|
1273
1269
|
name: string;
|
@@ -1302,6 +1298,10 @@ declare const commonSchema: import("zod").ZodUnion<[import("zod").ZodObject<impo
|
|
1302
1298
|
columns: string[];
|
1303
1299
|
}>;
|
1304
1300
|
}>;
|
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>;
|