drizzle-kit 0.20.17-8b4d89e → 0.20.17-90c7298
Sign up to get free protection for your applications and to get access to all the features.
- package/@types/utils.d.ts +1 -0
- package/bin.cjs +50957 -12206
- package/cli/commands/migrate.d.ts +43 -43
- package/cli/commands/mysqlIntrospect.d.ts +9 -14
- package/cli/commands/pgIntrospect.d.ts +8 -8
- package/cli/commands/sqliteIntrospect.d.ts +12 -13
- package/cli/commands/sqlitePushUtils.d.ts +2 -2
- package/cli/commands/utils.d.ts +2 -2
- package/cli/connections.d.ts +13 -0
- package/cli/utils.d.ts +1 -0
- package/cli/validations/cli.d.ts +48 -48
- package/cli/validations/common.d.ts +35 -35
- package/cli/validations/mysql.d.ts +7 -13
- package/cli/validations/outputs.d.ts +2 -2
- package/cli/validations/pg.d.ts +22 -13
- package/cli/validations/sqlite.d.ts +0 -12
- package/cli/views.d.ts +1 -0
- package/index.d.mts +17 -57
- package/index.d.ts +17 -57
- package/package.json +12 -6
- package/payload.js +1659 -20681
- package/payload.mjs +1482 -20504
- package/schemaValidator.d.ts +228 -228
- package/serializer/mysqlSchema.d.ts +910 -1224
- package/serializer/pgSchema.d.ts +745 -745
- package/serializer/sqliteSchema.d.ts +457 -457
- package/serializer/studio.d.ts +51 -0
- package/snapshotsDiffer.d.ts +315 -316
- package/utils-studio.js +890 -3448
- package/utils-studio.mjs +855 -3413
- package/utils.d.ts +6 -0
- package/utils.js +222 -857
- package/utils.mjs +197 -832
package/snapshotsDiffer.d.ts
CHANGED
@@ -1,126 +1,126 @@
|
|
1
1
|
import { TypeOf, ZodTypeAny } from "zod";
|
2
2
|
import { JsonStatement } from "./jsonStatements";
|
3
|
-
import {
|
3
|
+
import { SQLiteSchemaSquashed } from "./serializer/sqliteSchema";
|
4
4
|
import { MySqlSchema, MySqlSchemaSquashed } from "./serializer/mysqlSchema";
|
5
5
|
import { PgSchema, PgSchemaSquashed } from "./serializer/pgSchema";
|
6
6
|
import { Named } from "./cli/commands/migrate";
|
7
7
|
export declare const makePatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
|
8
8
|
type: import("zod").ZodLiteral<"added">;
|
9
9
|
value: T;
|
10
|
-
}, "strip", ZodTypeAny, { [
|
11
|
-
type:
|
12
|
-
value: T;
|
13
|
-
}
|
14
|
-
type:
|
15
|
-
value: T;
|
16
|
-
}
|
17
|
-
type:
|
18
|
-
value: T;
|
19
|
-
}>]: import("zod").
|
20
|
-
type:
|
21
|
-
value: T;
|
22
|
-
}>[
|
23
|
-
type: import("zod").ZodLiteral<"deleted">;
|
24
|
-
value: T;
|
25
|
-
}, "strip", ZodTypeAny, { [k_2 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
26
|
-
type: import("zod").ZodLiteral<"deleted">;
|
27
|
-
value: T;
|
28
|
-
}>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
29
|
-
type: import("zod").ZodLiteral<"deleted">;
|
30
|
-
value: T;
|
31
|
-
}>, any>[k_2]; }, { [k_1_1 in keyof import("zod").baseObjectInputType<{
|
32
|
-
type: import("zod").ZodLiteral<"deleted">;
|
33
|
-
value: T;
|
34
|
-
}>]: import("zod").baseObjectInputType<{
|
10
|
+
}, "strip", ZodTypeAny, { [k_1 in keyof import("zod").objectUtil.addQuestionMarks<{
|
11
|
+
type: "added";
|
12
|
+
value: T["_output"];
|
13
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
14
|
+
type: "added";
|
15
|
+
value: T["_output"];
|
16
|
+
}>[k_1]; }, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<{
|
17
|
+
type: "added";
|
18
|
+
value: T["_input"];
|
19
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
20
|
+
type: "added";
|
21
|
+
value: T["_input"];
|
22
|
+
}>[k_3]; }>, import("zod").ZodObject<{
|
35
23
|
type: import("zod").ZodLiteral<"deleted">;
|
36
24
|
value: T;
|
37
|
-
}
|
25
|
+
}, "strip", ZodTypeAny, { [k_1_1 in keyof import("zod").objectUtil.addQuestionMarks<{
|
26
|
+
type: "deleted";
|
27
|
+
value: T["_output"];
|
28
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
29
|
+
type: "deleted";
|
30
|
+
value: T["_output"];
|
31
|
+
}>[k_1_1]; }, { [k_3_1 in keyof import("zod").objectUtil.addQuestionMarks<{
|
32
|
+
type: "deleted";
|
33
|
+
value: T["_input"];
|
34
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
35
|
+
type: "deleted";
|
36
|
+
value: T["_input"];
|
37
|
+
}>[k_3_1]; }>, import("zod").ZodObject<{
|
38
38
|
type: import("zod").ZodLiteral<"changed">;
|
39
39
|
old: T;
|
40
40
|
new: T;
|
41
|
-
}, "strip", ZodTypeAny, { [
|
42
|
-
type:
|
43
|
-
old: T;
|
44
|
-
new: T;
|
45
|
-
}
|
46
|
-
type:
|
47
|
-
old: T;
|
48
|
-
new: T;
|
49
|
-
}
|
50
|
-
type:
|
51
|
-
old: T;
|
52
|
-
new: T;
|
53
|
-
}>]: import("zod").
|
54
|
-
type:
|
55
|
-
old: T;
|
56
|
-
new: T;
|
57
|
-
}>[
|
41
|
+
}, "strip", ZodTypeAny, { [k_1_2 in keyof import("zod").objectUtil.addQuestionMarks<{
|
42
|
+
type: "changed";
|
43
|
+
old: T["_output"];
|
44
|
+
new: T["_output"];
|
45
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
46
|
+
type: "changed";
|
47
|
+
old: T["_output"];
|
48
|
+
new: T["_output"];
|
49
|
+
}>[k_1_2]; }, { [k_3_2 in keyof import("zod").objectUtil.addQuestionMarks<{
|
50
|
+
type: "changed";
|
51
|
+
old: T["_input"];
|
52
|
+
new: T["_input"];
|
53
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
54
|
+
type: "changed";
|
55
|
+
old: T["_input"];
|
56
|
+
new: T["_input"];
|
57
|
+
}>[k_3_2]; }>]>;
|
58
58
|
export declare const makeSelfOrPatched: <T extends ZodTypeAny>(schema: T) => import("zod").ZodUnion<[import("zod").ZodObject<{
|
59
59
|
type: import("zod").ZodLiteral<"none">;
|
60
60
|
value: T;
|
61
|
-
}, "strip", ZodTypeAny, { [
|
62
|
-
type:
|
63
|
-
value: T;
|
64
|
-
}
|
65
|
-
type:
|
66
|
-
value: T;
|
67
|
-
}
|
68
|
-
type:
|
69
|
-
value: T;
|
70
|
-
}>]: import("zod").
|
71
|
-
type:
|
72
|
-
value: T;
|
73
|
-
}>[
|
74
|
-
type: import("zod").ZodLiteral<"added">;
|
75
|
-
value: T;
|
76
|
-
}, "strip", ZodTypeAny, { [k_2 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
77
|
-
type: import("zod").ZodLiteral<"added">;
|
78
|
-
value: T;
|
79
|
-
}>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
80
|
-
type: import("zod").ZodLiteral<"added">;
|
81
|
-
value: T;
|
82
|
-
}>, any>[k_2]; }, { [k_1_1 in keyof import("zod").baseObjectInputType<{
|
83
|
-
type: import("zod").ZodLiteral<"added">;
|
84
|
-
value: T;
|
85
|
-
}>]: import("zod").baseObjectInputType<{
|
61
|
+
}, "strip", ZodTypeAny, { [k_1 in keyof import("zod").objectUtil.addQuestionMarks<{
|
62
|
+
type: "none";
|
63
|
+
value: T["_output"];
|
64
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
65
|
+
type: "none";
|
66
|
+
value: T["_output"];
|
67
|
+
}>[k_1]; }, { [k_3 in keyof import("zod").objectUtil.addQuestionMarks<{
|
68
|
+
type: "none";
|
69
|
+
value: T["_input"];
|
70
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
71
|
+
type: "none";
|
72
|
+
value: T["_input"];
|
73
|
+
}>[k_3]; }>, import("zod").ZodObject<{
|
86
74
|
type: import("zod").ZodLiteral<"added">;
|
87
75
|
value: T;
|
88
|
-
}
|
89
|
-
type:
|
90
|
-
value: T;
|
91
|
-
}
|
76
|
+
}, "strip", ZodTypeAny, { [k_1_1 in keyof import("zod").objectUtil.addQuestionMarks<{
|
77
|
+
type: "added";
|
78
|
+
value: T["_output"];
|
79
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
80
|
+
type: "added";
|
81
|
+
value: T["_output"];
|
82
|
+
}>[k_1_1]; }, { [k_3_1 in keyof import("zod").objectUtil.addQuestionMarks<{
|
83
|
+
type: "added";
|
84
|
+
value: T["_input"];
|
85
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
86
|
+
type: "added";
|
87
|
+
value: T["_input"];
|
88
|
+
}>[k_3_1]; }>, import("zod").ZodObject<{
|
92
89
|
type: import("zod").ZodLiteral<"deleted">;
|
93
90
|
value: T;
|
94
|
-
}
|
95
|
-
type:
|
96
|
-
value: T;
|
97
|
-
}
|
98
|
-
type:
|
99
|
-
value: T;
|
100
|
-
}>]
|
101
|
-
type:
|
102
|
-
value: T;
|
103
|
-
}>
|
104
|
-
type:
|
105
|
-
|
106
|
-
|
107
|
-
}, "strip", ZodTypeAny, { [k_4 in keyof import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
108
|
-
type: import("zod").ZodLiteral<"changed">;
|
109
|
-
old: T;
|
110
|
-
new: T;
|
111
|
-
}>, any>]: import("zod").objectUtil.addQuestionMarks<import("zod").baseObjectOutputType<{
|
112
|
-
type: import("zod").ZodLiteral<"changed">;
|
113
|
-
old: T;
|
114
|
-
new: T;
|
115
|
-
}>, any>[k_4]; }, { [k_1_3 in keyof import("zod").baseObjectInputType<{
|
116
|
-
type: import("zod").ZodLiteral<"changed">;
|
117
|
-
old: T;
|
118
|
-
new: T;
|
119
|
-
}>]: import("zod").baseObjectInputType<{
|
91
|
+
}, "strip", ZodTypeAny, { [k_1_2 in keyof import("zod").objectUtil.addQuestionMarks<{
|
92
|
+
type: "deleted";
|
93
|
+
value: T["_output"];
|
94
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
95
|
+
type: "deleted";
|
96
|
+
value: T["_output"];
|
97
|
+
}>[k_1_2]; }, { [k_3_2 in keyof import("zod").objectUtil.addQuestionMarks<{
|
98
|
+
type: "deleted";
|
99
|
+
value: T["_input"];
|
100
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
101
|
+
type: "deleted";
|
102
|
+
value: T["_input"];
|
103
|
+
}>[k_3_2]; }>, import("zod").ZodObject<{
|
120
104
|
type: import("zod").ZodLiteral<"changed">;
|
121
105
|
old: T;
|
122
106
|
new: T;
|
123
|
-
}
|
107
|
+
}, "strip", ZodTypeAny, { [k_1_3 in keyof import("zod").objectUtil.addQuestionMarks<{
|
108
|
+
type: "changed";
|
109
|
+
old: T["_output"];
|
110
|
+
new: T["_output"];
|
111
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
112
|
+
type: "changed";
|
113
|
+
old: T["_output"];
|
114
|
+
new: T["_output"];
|
115
|
+
}>[k_1_3]; }, { [k_3_3 in keyof import("zod").objectUtil.addQuestionMarks<{
|
116
|
+
type: "changed";
|
117
|
+
old: T["_input"];
|
118
|
+
new: T["_input"];
|
119
|
+
}>]: import("zod").objectUtil.addQuestionMarks<{
|
120
|
+
type: "changed";
|
121
|
+
old: T["_input"];
|
122
|
+
new: T["_input"];
|
123
|
+
}>[k_3_3]; }>]>;
|
124
124
|
declare const columnSchema: import("zod").ZodObject<{
|
125
125
|
name: import("zod").ZodString;
|
126
126
|
type: import("zod").ZodString;
|
@@ -134,8 +134,6 @@ declare const columnSchema: import("zod").ZodObject<{
|
|
134
134
|
uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
|
135
135
|
nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
136
136
|
}, "strict", ZodTypeAny, {
|
137
|
-
name: string;
|
138
|
-
type: string;
|
139
137
|
isUnique?: any;
|
140
138
|
default?: any;
|
141
139
|
onUpdate?: boolean | undefined;
|
@@ -145,9 +143,9 @@ declare const columnSchema: import("zod").ZodObject<{
|
|
145
143
|
typeSchema?: string | undefined;
|
146
144
|
uniqueName?: string | undefined;
|
147
145
|
nullsNotDistinct?: boolean | undefined;
|
148
|
-
}, {
|
149
146
|
name: string;
|
150
147
|
type: string;
|
148
|
+
}, {
|
151
149
|
isUnique?: any;
|
152
150
|
default?: any;
|
153
151
|
onUpdate?: boolean | undefined;
|
@@ -157,6 +155,8 @@ declare const columnSchema: import("zod").ZodObject<{
|
|
157
155
|
typeSchema?: string | undefined;
|
158
156
|
uniqueName?: string | undefined;
|
159
157
|
nullsNotDistinct?: boolean | undefined;
|
158
|
+
name: string;
|
159
|
+
type: string;
|
160
160
|
}>;
|
161
161
|
declare const alteredColumnSchema: import("zod").ZodObject<{
|
162
162
|
name: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
|
@@ -189,32 +189,32 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
|
|
189
189
|
type: import("zod").ZodLiteral<"added">;
|
190
190
|
value: import("zod").ZodAny;
|
191
191
|
}, "strip", ZodTypeAny, {
|
192
|
-
type: "added";
|
193
192
|
value?: any;
|
194
|
-
}, {
|
195
193
|
type: "added";
|
194
|
+
}, {
|
196
195
|
value?: any;
|
196
|
+
type: "added";
|
197
197
|
}>, import("zod").ZodObject<{
|
198
198
|
type: import("zod").ZodLiteral<"deleted">;
|
199
199
|
value: import("zod").ZodAny;
|
200
200
|
}, "strip", ZodTypeAny, {
|
201
|
-
type: "deleted";
|
202
201
|
value?: any;
|
203
|
-
}, {
|
204
202
|
type: "deleted";
|
203
|
+
}, {
|
205
204
|
value?: any;
|
205
|
+
type: "deleted";
|
206
206
|
}>, import("zod").ZodObject<{
|
207
207
|
type: import("zod").ZodLiteral<"changed">;
|
208
208
|
old: import("zod").ZodAny;
|
209
209
|
new: import("zod").ZodAny;
|
210
210
|
}, "strip", ZodTypeAny, {
|
211
|
-
type: "changed";
|
212
211
|
old?: any;
|
213
212
|
new?: any;
|
214
|
-
}, {
|
215
213
|
type: "changed";
|
214
|
+
}, {
|
216
215
|
old?: any;
|
217
216
|
new?: any;
|
217
|
+
type: "changed";
|
218
218
|
}>]>>;
|
219
219
|
primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
220
220
|
type: import("zod").ZodLiteral<"added">;
|
@@ -372,21 +372,16 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
|
|
372
372
|
new: boolean;
|
373
373
|
}>]>>;
|
374
374
|
}, "strict", ZodTypeAny, {
|
375
|
-
name: string | {
|
376
|
-
type: "changed";
|
377
|
-
old: string;
|
378
|
-
new: string;
|
379
|
-
};
|
380
375
|
default?: {
|
381
|
-
type: "added";
|
382
376
|
value?: any;
|
377
|
+
type: "added";
|
383
378
|
} | {
|
384
|
-
type: "deleted";
|
385
379
|
value?: any;
|
380
|
+
type: "deleted";
|
386
381
|
} | {
|
387
|
-
type: "changed";
|
388
382
|
old?: any;
|
389
383
|
new?: any;
|
384
|
+
type: "changed";
|
390
385
|
} | undefined;
|
391
386
|
type?: {
|
392
387
|
type: "changed";
|
@@ -448,22 +443,22 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
|
|
448
443
|
old: string;
|
449
444
|
new: string;
|
450
445
|
} | undefined;
|
451
|
-
}, {
|
452
446
|
name: string | {
|
453
447
|
type: "changed";
|
454
448
|
old: string;
|
455
449
|
new: string;
|
456
450
|
};
|
451
|
+
}, {
|
457
452
|
default?: {
|
458
|
-
type: "added";
|
459
453
|
value?: any;
|
454
|
+
type: "added";
|
460
455
|
} | {
|
461
|
-
type: "deleted";
|
462
456
|
value?: any;
|
457
|
+
type: "deleted";
|
463
458
|
} | {
|
464
|
-
type: "changed";
|
465
459
|
old?: any;
|
466
460
|
new?: any;
|
461
|
+
type: "changed";
|
467
462
|
} | undefined;
|
468
463
|
type?: {
|
469
464
|
type: "changed";
|
@@ -525,6 +520,11 @@ declare const alteredColumnSchema: import("zod").ZodObject<{
|
|
525
520
|
old: string;
|
526
521
|
new: string;
|
527
522
|
} | undefined;
|
523
|
+
name: string | {
|
524
|
+
type: "changed";
|
525
|
+
old: string;
|
526
|
+
new: string;
|
527
|
+
};
|
528
528
|
}>;
|
529
529
|
declare const enumSchema: import("zod").ZodObject<{
|
530
530
|
name: import("zod").ZodString;
|
@@ -555,8 +555,6 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
555
555
|
uniqueName: import("zod").ZodOptional<import("zod").ZodString>;
|
556
556
|
nullsNotDistinct: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
557
557
|
}, "strict", ZodTypeAny, {
|
558
|
-
name: string;
|
559
|
-
type: string;
|
560
558
|
isUnique?: any;
|
561
559
|
default?: any;
|
562
560
|
onUpdate?: boolean | undefined;
|
@@ -566,9 +564,9 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
566
564
|
typeSchema?: string | undefined;
|
567
565
|
uniqueName?: string | undefined;
|
568
566
|
nullsNotDistinct?: boolean | undefined;
|
569
|
-
}, {
|
570
567
|
name: string;
|
571
568
|
type: string;
|
569
|
+
}, {
|
572
570
|
isUnique?: any;
|
573
571
|
default?: any;
|
574
572
|
onUpdate?: boolean | undefined;
|
@@ -578,6 +576,8 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
578
576
|
typeSchema?: string | undefined;
|
579
577
|
uniqueName?: string | undefined;
|
580
578
|
nullsNotDistinct?: boolean | undefined;
|
579
|
+
name: string;
|
580
|
+
type: string;
|
581
581
|
}>>;
|
582
582
|
indexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
583
583
|
foreignKeys: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
@@ -586,8 +586,6 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
586
586
|
}, "strict", ZodTypeAny, {
|
587
587
|
name: string;
|
588
588
|
columns: Record<string, {
|
589
|
-
name: string;
|
590
|
-
type: string;
|
591
589
|
isUnique?: any;
|
592
590
|
default?: any;
|
593
591
|
onUpdate?: boolean | undefined;
|
@@ -597,6 +595,8 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
597
595
|
typeSchema?: string | undefined;
|
598
596
|
uniqueName?: string | undefined;
|
599
597
|
nullsNotDistinct?: boolean | undefined;
|
598
|
+
name: string;
|
599
|
+
type: string;
|
600
600
|
}>;
|
601
601
|
indexes: Record<string, string>;
|
602
602
|
foreignKeys: Record<string, string>;
|
@@ -604,10 +604,11 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
604
604
|
compositePrimaryKeys: Record<string, string>;
|
605
605
|
uniqueConstraints: Record<string, string>;
|
606
606
|
}, {
|
607
|
+
schema?: string | undefined;
|
608
|
+
compositePrimaryKeys?: Record<string, string> | undefined;
|
609
|
+
uniqueConstraints?: Record<string, string> | undefined;
|
607
610
|
name: string;
|
608
611
|
columns: Record<string, {
|
609
|
-
name: string;
|
610
|
-
type: string;
|
611
612
|
isUnique?: any;
|
612
613
|
default?: any;
|
613
614
|
onUpdate?: boolean | undefined;
|
@@ -617,12 +618,11 @@ declare const tableScheme: import("zod").ZodObject<{
|
|
617
618
|
typeSchema?: string | undefined;
|
618
619
|
uniqueName?: string | undefined;
|
619
620
|
nullsNotDistinct?: boolean | undefined;
|
621
|
+
name: string;
|
622
|
+
type: string;
|
620
623
|
}>;
|
621
624
|
indexes: Record<string, string>;
|
622
625
|
foreignKeys: Record<string, string>;
|
623
|
-
schema?: string | undefined;
|
624
|
-
compositePrimaryKeys?: Record<string, string> | undefined;
|
625
|
-
uniqueConstraints?: Record<string, string> | undefined;
|
626
626
|
}>;
|
627
627
|
export declare const alteredTableScheme: import("zod").ZodObject<{
|
628
628
|
name: import("zod").ZodString;
|
@@ -658,32 +658,32 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
658
658
|
type: import("zod").ZodLiteral<"added">;
|
659
659
|
value: import("zod").ZodAny;
|
660
660
|
}, "strip", ZodTypeAny, {
|
661
|
-
type: "added";
|
662
661
|
value?: any;
|
663
|
-
}, {
|
664
662
|
type: "added";
|
663
|
+
}, {
|
665
664
|
value?: any;
|
665
|
+
type: "added";
|
666
666
|
}>, import("zod").ZodObject<{
|
667
667
|
type: import("zod").ZodLiteral<"deleted">;
|
668
668
|
value: import("zod").ZodAny;
|
669
669
|
}, "strip", ZodTypeAny, {
|
670
|
-
type: "deleted";
|
671
670
|
value?: any;
|
672
|
-
}, {
|
673
671
|
type: "deleted";
|
672
|
+
}, {
|
674
673
|
value?: any;
|
674
|
+
type: "deleted";
|
675
675
|
}>, import("zod").ZodObject<{
|
676
676
|
type: import("zod").ZodLiteral<"changed">;
|
677
677
|
old: import("zod").ZodAny;
|
678
678
|
new: import("zod").ZodAny;
|
679
679
|
}, "strip", ZodTypeAny, {
|
680
|
-
type: "changed";
|
681
680
|
old?: any;
|
682
681
|
new?: any;
|
683
|
-
}, {
|
684
682
|
type: "changed";
|
683
|
+
}, {
|
685
684
|
old?: any;
|
686
685
|
new?: any;
|
686
|
+
type: "changed";
|
687
687
|
}>]>>;
|
688
688
|
primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
689
689
|
type: import("zod").ZodLiteral<"added">;
|
@@ -841,21 +841,16 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
841
841
|
new: boolean;
|
842
842
|
}>]>>;
|
843
843
|
}, "strict", ZodTypeAny, {
|
844
|
-
name: string | {
|
845
|
-
type: "changed";
|
846
|
-
old: string;
|
847
|
-
new: string;
|
848
|
-
};
|
849
844
|
default?: {
|
850
|
-
type: "added";
|
851
845
|
value?: any;
|
846
|
+
type: "added";
|
852
847
|
} | {
|
853
|
-
type: "deleted";
|
854
848
|
value?: any;
|
849
|
+
type: "deleted";
|
855
850
|
} | {
|
856
|
-
type: "changed";
|
857
851
|
old?: any;
|
858
852
|
new?: any;
|
853
|
+
type: "changed";
|
859
854
|
} | undefined;
|
860
855
|
type?: {
|
861
856
|
type: "changed";
|
@@ -917,22 +912,22 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
917
912
|
old: string;
|
918
913
|
new: string;
|
919
914
|
} | undefined;
|
920
|
-
}, {
|
921
915
|
name: string | {
|
922
916
|
type: "changed";
|
923
917
|
old: string;
|
924
918
|
new: string;
|
925
919
|
};
|
920
|
+
}, {
|
926
921
|
default?: {
|
927
|
-
type: "added";
|
928
922
|
value?: any;
|
923
|
+
type: "added";
|
929
924
|
} | {
|
930
|
-
type: "deleted";
|
931
925
|
value?: any;
|
926
|
+
type: "deleted";
|
932
927
|
} | {
|
933
|
-
type: "changed";
|
934
928
|
old?: any;
|
935
929
|
new?: any;
|
930
|
+
type: "changed";
|
936
931
|
} | undefined;
|
937
932
|
type?: {
|
938
933
|
type: "changed";
|
@@ -994,6 +989,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
994
989
|
old: string;
|
995
990
|
new: string;
|
996
991
|
} | undefined;
|
992
|
+
name: string | {
|
993
|
+
type: "changed";
|
994
|
+
old: string;
|
995
|
+
new: string;
|
996
|
+
};
|
997
997
|
}>, "many">;
|
998
998
|
addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
999
999
|
deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
@@ -1047,21 +1047,16 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
1047
1047
|
name: string;
|
1048
1048
|
schema: string;
|
1049
1049
|
altered: {
|
1050
|
-
name: string | {
|
1051
|
-
type: "changed";
|
1052
|
-
old: string;
|
1053
|
-
new: string;
|
1054
|
-
};
|
1055
1050
|
default?: {
|
1056
|
-
type: "added";
|
1057
1051
|
value?: any;
|
1052
|
+
type: "added";
|
1058
1053
|
} | {
|
1059
|
-
type: "deleted";
|
1060
1054
|
value?: any;
|
1055
|
+
type: "deleted";
|
1061
1056
|
} | {
|
1062
|
-
type: "changed";
|
1063
1057
|
old?: any;
|
1064
1058
|
new?: any;
|
1059
|
+
type: "changed";
|
1065
1060
|
} | undefined;
|
1066
1061
|
type?: {
|
1067
1062
|
type: "changed";
|
@@ -1123,6 +1118,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
1123
1118
|
old: string;
|
1124
1119
|
new: string;
|
1125
1120
|
} | undefined;
|
1121
|
+
name: string | {
|
1122
|
+
type: "changed";
|
1123
|
+
old: string;
|
1124
|
+
new: string;
|
1125
|
+
};
|
1126
1126
|
}[];
|
1127
1127
|
addedIndexes: Record<string, string>;
|
1128
1128
|
deletedIndexes: Record<string, string>;
|
@@ -1152,21 +1152,16 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
1152
1152
|
name: string;
|
1153
1153
|
schema: string;
|
1154
1154
|
altered: {
|
1155
|
-
name: string | {
|
1156
|
-
type: "changed";
|
1157
|
-
old: string;
|
1158
|
-
new: string;
|
1159
|
-
};
|
1160
1155
|
default?: {
|
1161
|
-
type: "added";
|
1162
1156
|
value?: any;
|
1157
|
+
type: "added";
|
1163
1158
|
} | {
|
1164
|
-
type: "deleted";
|
1165
1159
|
value?: any;
|
1160
|
+
type: "deleted";
|
1166
1161
|
} | {
|
1167
|
-
type: "changed";
|
1168
1162
|
old?: any;
|
1169
1163
|
new?: any;
|
1164
|
+
type: "changed";
|
1170
1165
|
} | undefined;
|
1171
1166
|
type?: {
|
1172
1167
|
type: "changed";
|
@@ -1228,6 +1223,11 @@ export declare const alteredTableScheme: import("zod").ZodObject<{
|
|
1228
1223
|
old: string;
|
1229
1224
|
new: string;
|
1230
1225
|
} | undefined;
|
1226
|
+
name: string | {
|
1227
|
+
type: "changed";
|
1228
|
+
old: string;
|
1229
|
+
new: string;
|
1230
|
+
};
|
1231
1231
|
}[];
|
1232
1232
|
addedIndexes: Record<string, string>;
|
1233
1233
|
deletedIndexes: Record<string, string>;
|
@@ -1289,32 +1289,32 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1289
1289
|
type: import("zod").ZodLiteral<"added">;
|
1290
1290
|
value: import("zod").ZodAny;
|
1291
1291
|
}, "strip", ZodTypeAny, {
|
1292
|
-
type: "added";
|
1293
1292
|
value?: any;
|
1294
|
-
}, {
|
1295
1293
|
type: "added";
|
1294
|
+
}, {
|
1296
1295
|
value?: any;
|
1296
|
+
type: "added";
|
1297
1297
|
}>, import("zod").ZodObject<{
|
1298
1298
|
type: import("zod").ZodLiteral<"deleted">;
|
1299
1299
|
value: import("zod").ZodAny;
|
1300
1300
|
}, "strip", ZodTypeAny, {
|
1301
|
-
type: "deleted";
|
1302
1301
|
value?: any;
|
1303
|
-
}, {
|
1304
1302
|
type: "deleted";
|
1303
|
+
}, {
|
1305
1304
|
value?: any;
|
1305
|
+
type: "deleted";
|
1306
1306
|
}>, import("zod").ZodObject<{
|
1307
1307
|
type: import("zod").ZodLiteral<"changed">;
|
1308
1308
|
old: import("zod").ZodAny;
|
1309
1309
|
new: import("zod").ZodAny;
|
1310
1310
|
}, "strip", ZodTypeAny, {
|
1311
|
-
type: "changed";
|
1312
1311
|
old?: any;
|
1313
1312
|
new?: any;
|
1314
|
-
}, {
|
1315
1313
|
type: "changed";
|
1314
|
+
}, {
|
1316
1315
|
old?: any;
|
1317
1316
|
new?: any;
|
1317
|
+
type: "changed";
|
1318
1318
|
}>]>>;
|
1319
1319
|
primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
1320
1320
|
type: import("zod").ZodLiteral<"added">;
|
@@ -1472,21 +1472,16 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1472
1472
|
new: boolean;
|
1473
1473
|
}>]>>;
|
1474
1474
|
}, "strict", ZodTypeAny, {
|
1475
|
-
name: string | {
|
1476
|
-
type: "changed";
|
1477
|
-
old: string;
|
1478
|
-
new: string;
|
1479
|
-
};
|
1480
1475
|
default?: {
|
1481
|
-
type: "added";
|
1482
1476
|
value?: any;
|
1477
|
+
type: "added";
|
1483
1478
|
} | {
|
1484
|
-
type: "deleted";
|
1485
1479
|
value?: any;
|
1480
|
+
type: "deleted";
|
1486
1481
|
} | {
|
1487
|
-
type: "changed";
|
1488
1482
|
old?: any;
|
1489
1483
|
new?: any;
|
1484
|
+
type: "changed";
|
1490
1485
|
} | undefined;
|
1491
1486
|
type?: {
|
1492
1487
|
type: "changed";
|
@@ -1548,22 +1543,22 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1548
1543
|
old: string;
|
1549
1544
|
new: string;
|
1550
1545
|
} | undefined;
|
1551
|
-
}, {
|
1552
1546
|
name: string | {
|
1553
1547
|
type: "changed";
|
1554
1548
|
old: string;
|
1555
1549
|
new: string;
|
1556
1550
|
};
|
1551
|
+
}, {
|
1557
1552
|
default?: {
|
1558
|
-
type: "added";
|
1559
1553
|
value?: any;
|
1554
|
+
type: "added";
|
1560
1555
|
} | {
|
1561
|
-
type: "deleted";
|
1562
1556
|
value?: any;
|
1557
|
+
type: "deleted";
|
1563
1558
|
} | {
|
1564
|
-
type: "changed";
|
1565
1559
|
old?: any;
|
1566
1560
|
new?: any;
|
1561
|
+
type: "changed";
|
1567
1562
|
} | undefined;
|
1568
1563
|
type?: {
|
1569
1564
|
type: "changed";
|
@@ -1625,6 +1620,11 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1625
1620
|
old: string;
|
1626
1621
|
new: string;
|
1627
1622
|
} | undefined;
|
1623
|
+
name: string | {
|
1624
|
+
type: "changed";
|
1625
|
+
old: string;
|
1626
|
+
new: string;
|
1627
|
+
};
|
1628
1628
|
}>, "many">;
|
1629
1629
|
addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
1630
1630
|
deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
@@ -1678,21 +1678,16 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1678
1678
|
name: string;
|
1679
1679
|
schema: string;
|
1680
1680
|
altered: {
|
1681
|
-
name: string | {
|
1682
|
-
type: "changed";
|
1683
|
-
old: string;
|
1684
|
-
new: string;
|
1685
|
-
};
|
1686
1681
|
default?: {
|
1687
|
-
type: "added";
|
1688
1682
|
value?: any;
|
1683
|
+
type: "added";
|
1689
1684
|
} | {
|
1690
|
-
type: "deleted";
|
1691
1685
|
value?: any;
|
1686
|
+
type: "deleted";
|
1692
1687
|
} | {
|
1693
|
-
type: "changed";
|
1694
1688
|
old?: any;
|
1695
1689
|
new?: any;
|
1690
|
+
type: "changed";
|
1696
1691
|
} | undefined;
|
1697
1692
|
type?: {
|
1698
1693
|
type: "changed";
|
@@ -1754,6 +1749,11 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1754
1749
|
old: string;
|
1755
1750
|
new: string;
|
1756
1751
|
} | undefined;
|
1752
|
+
name: string | {
|
1753
|
+
type: "changed";
|
1754
|
+
old: string;
|
1755
|
+
new: string;
|
1756
|
+
};
|
1757
1757
|
}[];
|
1758
1758
|
addedIndexes: Record<string, string>;
|
1759
1759
|
deletedIndexes: Record<string, string>;
|
@@ -1783,21 +1783,16 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1783
1783
|
name: string;
|
1784
1784
|
schema: string;
|
1785
1785
|
altered: {
|
1786
|
-
name: string | {
|
1787
|
-
type: "changed";
|
1788
|
-
old: string;
|
1789
|
-
new: string;
|
1790
|
-
};
|
1791
1786
|
default?: {
|
1792
|
-
type: "added";
|
1793
1787
|
value?: any;
|
1788
|
+
type: "added";
|
1794
1789
|
} | {
|
1795
|
-
type: "deleted";
|
1796
1790
|
value?: any;
|
1791
|
+
type: "deleted";
|
1797
1792
|
} | {
|
1798
|
-
type: "changed";
|
1799
1793
|
old?: any;
|
1800
1794
|
new?: any;
|
1795
|
+
type: "changed";
|
1801
1796
|
} | undefined;
|
1802
1797
|
type?: {
|
1803
1798
|
type: "changed";
|
@@ -1859,6 +1854,11 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1859
1854
|
old: string;
|
1860
1855
|
new: string;
|
1861
1856
|
} | undefined;
|
1857
|
+
name: string | {
|
1858
|
+
type: "changed";
|
1859
|
+
old: string;
|
1860
|
+
new: string;
|
1861
|
+
};
|
1862
1862
|
}[];
|
1863
1863
|
addedIndexes: Record<string, string>;
|
1864
1864
|
deletedIndexes: Record<string, string>;
|
@@ -1921,21 +1921,16 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1921
1921
|
name: string;
|
1922
1922
|
schema: string;
|
1923
1923
|
altered: {
|
1924
|
-
name: string | {
|
1925
|
-
type: "changed";
|
1926
|
-
old: string;
|
1927
|
-
new: string;
|
1928
|
-
};
|
1929
1924
|
default?: {
|
1930
|
-
type: "added";
|
1931
1925
|
value?: any;
|
1926
|
+
type: "added";
|
1932
1927
|
} | {
|
1933
|
-
type: "deleted";
|
1934
1928
|
value?: any;
|
1929
|
+
type: "deleted";
|
1935
1930
|
} | {
|
1936
|
-
type: "changed";
|
1937
1931
|
old?: any;
|
1938
1932
|
new?: any;
|
1933
|
+
type: "changed";
|
1939
1934
|
} | undefined;
|
1940
1935
|
type?: {
|
1941
1936
|
type: "changed";
|
@@ -1997,6 +1992,11 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
1997
1992
|
old: string;
|
1998
1993
|
new: string;
|
1999
1994
|
} | undefined;
|
1995
|
+
name: string | {
|
1996
|
+
type: "changed";
|
1997
|
+
old: string;
|
1998
|
+
new: string;
|
1999
|
+
};
|
2000
2000
|
}[];
|
2001
2001
|
addedIndexes: Record<string, string>;
|
2002
2002
|
deletedIndexes: Record<string, string>;
|
@@ -2037,21 +2037,16 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
2037
2037
|
name: string;
|
2038
2038
|
schema: string;
|
2039
2039
|
altered: {
|
2040
|
-
name: string | {
|
2041
|
-
type: "changed";
|
2042
|
-
old: string;
|
2043
|
-
new: string;
|
2044
|
-
};
|
2045
2040
|
default?: {
|
2046
|
-
type: "added";
|
2047
2041
|
value?: any;
|
2042
|
+
type: "added";
|
2048
2043
|
} | {
|
2049
|
-
type: "deleted";
|
2050
2044
|
value?: any;
|
2045
|
+
type: "deleted";
|
2051
2046
|
} | {
|
2052
|
-
type: "changed";
|
2053
2047
|
old?: any;
|
2054
2048
|
new?: any;
|
2049
|
+
type: "changed";
|
2055
2050
|
} | undefined;
|
2056
2051
|
type?: {
|
2057
2052
|
type: "changed";
|
@@ -2113,6 +2108,11 @@ export declare const diffResultScheme: import("zod").ZodObject<{
|
|
2113
2108
|
old: string;
|
2114
2109
|
new: string;
|
2115
2110
|
} | undefined;
|
2111
|
+
name: string | {
|
2112
|
+
type: "changed";
|
2113
|
+
old: string;
|
2114
|
+
new: string;
|
2115
|
+
};
|
2116
2116
|
}[];
|
2117
2117
|
addedIndexes: Record<string, string>;
|
2118
2118
|
deletedIndexes: Record<string, string>;
|
@@ -2184,32 +2184,32 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2184
2184
|
type: import("zod").ZodLiteral<"added">;
|
2185
2185
|
value: import("zod").ZodAny;
|
2186
2186
|
}, "strip", ZodTypeAny, {
|
2187
|
-
type: "added";
|
2188
2187
|
value?: any;
|
2189
|
-
}, {
|
2190
2188
|
type: "added";
|
2189
|
+
}, {
|
2191
2190
|
value?: any;
|
2191
|
+
type: "added";
|
2192
2192
|
}>, import("zod").ZodObject<{
|
2193
2193
|
type: import("zod").ZodLiteral<"deleted">;
|
2194
2194
|
value: import("zod").ZodAny;
|
2195
2195
|
}, "strip", ZodTypeAny, {
|
2196
|
-
type: "deleted";
|
2197
2196
|
value?: any;
|
2198
|
-
}, {
|
2199
2197
|
type: "deleted";
|
2198
|
+
}, {
|
2200
2199
|
value?: any;
|
2200
|
+
type: "deleted";
|
2201
2201
|
}>, import("zod").ZodObject<{
|
2202
2202
|
type: import("zod").ZodLiteral<"changed">;
|
2203
2203
|
old: import("zod").ZodAny;
|
2204
2204
|
new: import("zod").ZodAny;
|
2205
2205
|
}, "strip", ZodTypeAny, {
|
2206
|
-
type: "changed";
|
2207
2206
|
old?: any;
|
2208
2207
|
new?: any;
|
2209
|
-
}, {
|
2210
2208
|
type: "changed";
|
2209
|
+
}, {
|
2211
2210
|
old?: any;
|
2212
2211
|
new?: any;
|
2212
|
+
type: "changed";
|
2213
2213
|
}>]>>;
|
2214
2214
|
primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
2215
2215
|
type: import("zod").ZodLiteral<"added">;
|
@@ -2367,21 +2367,16 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2367
2367
|
new: boolean;
|
2368
2368
|
}>]>>;
|
2369
2369
|
}, "strict", ZodTypeAny, {
|
2370
|
-
name: string | {
|
2371
|
-
type: "changed";
|
2372
|
-
old: string;
|
2373
|
-
new: string;
|
2374
|
-
};
|
2375
2370
|
default?: {
|
2376
|
-
type: "added";
|
2377
2371
|
value?: any;
|
2372
|
+
type: "added";
|
2378
2373
|
} | {
|
2379
|
-
type: "deleted";
|
2380
2374
|
value?: any;
|
2375
|
+
type: "deleted";
|
2381
2376
|
} | {
|
2382
|
-
type: "changed";
|
2383
2377
|
old?: any;
|
2384
2378
|
new?: any;
|
2379
|
+
type: "changed";
|
2385
2380
|
} | undefined;
|
2386
2381
|
type?: {
|
2387
2382
|
type: "changed";
|
@@ -2443,22 +2438,22 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2443
2438
|
old: string;
|
2444
2439
|
new: string;
|
2445
2440
|
} | undefined;
|
2446
|
-
}, {
|
2447
2441
|
name: string | {
|
2448
2442
|
type: "changed";
|
2449
2443
|
old: string;
|
2450
2444
|
new: string;
|
2451
2445
|
};
|
2446
|
+
}, {
|
2452
2447
|
default?: {
|
2453
|
-
type: "added";
|
2454
2448
|
value?: any;
|
2449
|
+
type: "added";
|
2455
2450
|
} | {
|
2456
|
-
type: "deleted";
|
2457
2451
|
value?: any;
|
2452
|
+
type: "deleted";
|
2458
2453
|
} | {
|
2459
|
-
type: "changed";
|
2460
2454
|
old?: any;
|
2461
2455
|
new?: any;
|
2456
|
+
type: "changed";
|
2462
2457
|
} | undefined;
|
2463
2458
|
type?: {
|
2464
2459
|
type: "changed";
|
@@ -2520,6 +2515,11 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2520
2515
|
old: string;
|
2521
2516
|
new: string;
|
2522
2517
|
} | undefined;
|
2518
|
+
name: string | {
|
2519
|
+
type: "changed";
|
2520
|
+
old: string;
|
2521
|
+
new: string;
|
2522
|
+
};
|
2523
2523
|
}>, "many">;
|
2524
2524
|
addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
2525
2525
|
deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
@@ -2573,21 +2573,16 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2573
2573
|
name: string;
|
2574
2574
|
schema: string;
|
2575
2575
|
altered: {
|
2576
|
-
name: string | {
|
2577
|
-
type: "changed";
|
2578
|
-
old: string;
|
2579
|
-
new: string;
|
2580
|
-
};
|
2581
2576
|
default?: {
|
2582
|
-
type: "added";
|
2583
2577
|
value?: any;
|
2578
|
+
type: "added";
|
2584
2579
|
} | {
|
2585
|
-
type: "deleted";
|
2586
2580
|
value?: any;
|
2581
|
+
type: "deleted";
|
2587
2582
|
} | {
|
2588
|
-
type: "changed";
|
2589
2583
|
old?: any;
|
2590
2584
|
new?: any;
|
2585
|
+
type: "changed";
|
2591
2586
|
} | undefined;
|
2592
2587
|
type?: {
|
2593
2588
|
type: "changed";
|
@@ -2649,6 +2644,11 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2649
2644
|
old: string;
|
2650
2645
|
new: string;
|
2651
2646
|
} | undefined;
|
2647
|
+
name: string | {
|
2648
|
+
type: "changed";
|
2649
|
+
old: string;
|
2650
|
+
new: string;
|
2651
|
+
};
|
2652
2652
|
}[];
|
2653
2653
|
addedIndexes: Record<string, string>;
|
2654
2654
|
deletedIndexes: Record<string, string>;
|
@@ -2678,21 +2678,16 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2678
2678
|
name: string;
|
2679
2679
|
schema: string;
|
2680
2680
|
altered: {
|
2681
|
-
name: string | {
|
2682
|
-
type: "changed";
|
2683
|
-
old: string;
|
2684
|
-
new: string;
|
2685
|
-
};
|
2686
2681
|
default?: {
|
2687
|
-
type: "added";
|
2688
2682
|
value?: any;
|
2683
|
+
type: "added";
|
2689
2684
|
} | {
|
2690
|
-
type: "deleted";
|
2691
2685
|
value?: any;
|
2686
|
+
type: "deleted";
|
2692
2687
|
} | {
|
2693
|
-
type: "changed";
|
2694
2688
|
old?: any;
|
2695
2689
|
new?: any;
|
2690
|
+
type: "changed";
|
2696
2691
|
} | undefined;
|
2697
2692
|
type?: {
|
2698
2693
|
type: "changed";
|
@@ -2754,6 +2749,11 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2754
2749
|
old: string;
|
2755
2750
|
new: string;
|
2756
2751
|
} | undefined;
|
2752
|
+
name: string | {
|
2753
|
+
type: "changed";
|
2754
|
+
old: string;
|
2755
|
+
new: string;
|
2756
|
+
};
|
2757
2757
|
}[];
|
2758
2758
|
addedIndexes: Record<string, string>;
|
2759
2759
|
deletedIndexes: Record<string, string>;
|
@@ -2786,21 +2786,16 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2786
2786
|
name: string;
|
2787
2787
|
schema: string;
|
2788
2788
|
altered: {
|
2789
|
-
name: string | {
|
2790
|
-
type: "changed";
|
2791
|
-
old: string;
|
2792
|
-
new: string;
|
2793
|
-
};
|
2794
2789
|
default?: {
|
2795
|
-
type: "added";
|
2796
2790
|
value?: any;
|
2791
|
+
type: "added";
|
2797
2792
|
} | {
|
2798
|
-
type: "deleted";
|
2799
2793
|
value?: any;
|
2794
|
+
type: "deleted";
|
2800
2795
|
} | {
|
2801
|
-
type: "changed";
|
2802
2796
|
old?: any;
|
2803
2797
|
new?: any;
|
2798
|
+
type: "changed";
|
2804
2799
|
} | undefined;
|
2805
2800
|
type?: {
|
2806
2801
|
type: "changed";
|
@@ -2862,6 +2857,11 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2862
2857
|
old: string;
|
2863
2858
|
new: string;
|
2864
2859
|
} | undefined;
|
2860
|
+
name: string | {
|
2861
|
+
type: "changed";
|
2862
|
+
old: string;
|
2863
|
+
new: string;
|
2864
|
+
};
|
2865
2865
|
}[];
|
2866
2866
|
addedIndexes: Record<string, string>;
|
2867
2867
|
deletedIndexes: Record<string, string>;
|
@@ -2894,21 +2894,16 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2894
2894
|
name: string;
|
2895
2895
|
schema: string;
|
2896
2896
|
altered: {
|
2897
|
-
name: string | {
|
2898
|
-
type: "changed";
|
2899
|
-
old: string;
|
2900
|
-
new: string;
|
2901
|
-
};
|
2902
2897
|
default?: {
|
2903
|
-
type: "added";
|
2904
2898
|
value?: any;
|
2899
|
+
type: "added";
|
2905
2900
|
} | {
|
2906
|
-
type: "deleted";
|
2907
2901
|
value?: any;
|
2902
|
+
type: "deleted";
|
2908
2903
|
} | {
|
2909
|
-
type: "changed";
|
2910
2904
|
old?: any;
|
2911
2905
|
new?: any;
|
2906
|
+
type: "changed";
|
2912
2907
|
} | undefined;
|
2913
2908
|
type?: {
|
2914
2909
|
type: "changed";
|
@@ -2970,6 +2965,11 @@ export declare const diffResultSchemeMysql: import("zod").ZodObject<{
|
|
2970
2965
|
old: string;
|
2971
2966
|
new: string;
|
2972
2967
|
} | undefined;
|
2968
|
+
name: string | {
|
2969
|
+
type: "changed";
|
2970
|
+
old: string;
|
2971
|
+
new: string;
|
2972
|
+
};
|
2973
2973
|
}[];
|
2974
2974
|
addedIndexes: Record<string, string>;
|
2975
2975
|
deletedIndexes: Record<string, string>;
|
@@ -3033,32 +3033,32 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3033
3033
|
type: import("zod").ZodLiteral<"added">;
|
3034
3034
|
value: import("zod").ZodAny;
|
3035
3035
|
}, "strip", ZodTypeAny, {
|
3036
|
-
type: "added";
|
3037
3036
|
value?: any;
|
3038
|
-
}, {
|
3039
3037
|
type: "added";
|
3038
|
+
}, {
|
3040
3039
|
value?: any;
|
3040
|
+
type: "added";
|
3041
3041
|
}>, import("zod").ZodObject<{
|
3042
3042
|
type: import("zod").ZodLiteral<"deleted">;
|
3043
3043
|
value: import("zod").ZodAny;
|
3044
3044
|
}, "strip", ZodTypeAny, {
|
3045
|
-
type: "deleted";
|
3046
3045
|
value?: any;
|
3047
|
-
}, {
|
3048
3046
|
type: "deleted";
|
3047
|
+
}, {
|
3049
3048
|
value?: any;
|
3049
|
+
type: "deleted";
|
3050
3050
|
}>, import("zod").ZodObject<{
|
3051
3051
|
type: import("zod").ZodLiteral<"changed">;
|
3052
3052
|
old: import("zod").ZodAny;
|
3053
3053
|
new: import("zod").ZodAny;
|
3054
3054
|
}, "strip", ZodTypeAny, {
|
3055
|
-
type: "changed";
|
3056
3055
|
old?: any;
|
3057
3056
|
new?: any;
|
3058
|
-
}, {
|
3059
3057
|
type: "changed";
|
3058
|
+
}, {
|
3060
3059
|
old?: any;
|
3061
3060
|
new?: any;
|
3061
|
+
type: "changed";
|
3062
3062
|
}>]>>;
|
3063
3063
|
primaryKey: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
3064
3064
|
type: import("zod").ZodLiteral<"added">;
|
@@ -3216,21 +3216,16 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3216
3216
|
new: boolean;
|
3217
3217
|
}>]>>;
|
3218
3218
|
}, "strict", ZodTypeAny, {
|
3219
|
-
name: string | {
|
3220
|
-
type: "changed";
|
3221
|
-
old: string;
|
3222
|
-
new: string;
|
3223
|
-
};
|
3224
3219
|
default?: {
|
3225
|
-
type: "added";
|
3226
3220
|
value?: any;
|
3221
|
+
type: "added";
|
3227
3222
|
} | {
|
3228
|
-
type: "deleted";
|
3229
3223
|
value?: any;
|
3224
|
+
type: "deleted";
|
3230
3225
|
} | {
|
3231
|
-
type: "changed";
|
3232
3226
|
old?: any;
|
3233
3227
|
new?: any;
|
3228
|
+
type: "changed";
|
3234
3229
|
} | undefined;
|
3235
3230
|
type?: {
|
3236
3231
|
type: "changed";
|
@@ -3292,22 +3287,22 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3292
3287
|
old: string;
|
3293
3288
|
new: string;
|
3294
3289
|
} | undefined;
|
3295
|
-
}, {
|
3296
3290
|
name: string | {
|
3297
3291
|
type: "changed";
|
3298
3292
|
old: string;
|
3299
3293
|
new: string;
|
3300
3294
|
};
|
3295
|
+
}, {
|
3301
3296
|
default?: {
|
3302
|
-
type: "added";
|
3303
3297
|
value?: any;
|
3298
|
+
type: "added";
|
3304
3299
|
} | {
|
3305
|
-
type: "deleted";
|
3306
3300
|
value?: any;
|
3301
|
+
type: "deleted";
|
3307
3302
|
} | {
|
3308
|
-
type: "changed";
|
3309
3303
|
old?: any;
|
3310
3304
|
new?: any;
|
3305
|
+
type: "changed";
|
3311
3306
|
} | undefined;
|
3312
3307
|
type?: {
|
3313
3308
|
type: "changed";
|
@@ -3369,6 +3364,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3369
3364
|
old: string;
|
3370
3365
|
new: string;
|
3371
3366
|
} | undefined;
|
3367
|
+
name: string | {
|
3368
|
+
type: "changed";
|
3369
|
+
old: string;
|
3370
|
+
new: string;
|
3371
|
+
};
|
3372
3372
|
}>, "many">;
|
3373
3373
|
addedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
3374
3374
|
deletedIndexes: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
@@ -3422,21 +3422,16 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3422
3422
|
name: string;
|
3423
3423
|
schema: string;
|
3424
3424
|
altered: {
|
3425
|
-
name: string | {
|
3426
|
-
type: "changed";
|
3427
|
-
old: string;
|
3428
|
-
new: string;
|
3429
|
-
};
|
3430
3425
|
default?: {
|
3431
|
-
type: "added";
|
3432
3426
|
value?: any;
|
3427
|
+
type: "added";
|
3433
3428
|
} | {
|
3434
|
-
type: "deleted";
|
3435
3429
|
value?: any;
|
3430
|
+
type: "deleted";
|
3436
3431
|
} | {
|
3437
|
-
type: "changed";
|
3438
3432
|
old?: any;
|
3439
3433
|
new?: any;
|
3434
|
+
type: "changed";
|
3440
3435
|
} | undefined;
|
3441
3436
|
type?: {
|
3442
3437
|
type: "changed";
|
@@ -3498,6 +3493,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3498
3493
|
old: string;
|
3499
3494
|
new: string;
|
3500
3495
|
} | undefined;
|
3496
|
+
name: string | {
|
3497
|
+
type: "changed";
|
3498
|
+
old: string;
|
3499
|
+
new: string;
|
3500
|
+
};
|
3501
3501
|
}[];
|
3502
3502
|
addedIndexes: Record<string, string>;
|
3503
3503
|
deletedIndexes: Record<string, string>;
|
@@ -3527,21 +3527,16 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3527
3527
|
name: string;
|
3528
3528
|
schema: string;
|
3529
3529
|
altered: {
|
3530
|
-
name: string | {
|
3531
|
-
type: "changed";
|
3532
|
-
old: string;
|
3533
|
-
new: string;
|
3534
|
-
};
|
3535
3530
|
default?: {
|
3536
|
-
type: "added";
|
3537
3531
|
value?: any;
|
3532
|
+
type: "added";
|
3538
3533
|
} | {
|
3539
|
-
type: "deleted";
|
3540
3534
|
value?: any;
|
3535
|
+
type: "deleted";
|
3541
3536
|
} | {
|
3542
|
-
type: "changed";
|
3543
3537
|
old?: any;
|
3544
3538
|
new?: any;
|
3539
|
+
type: "changed";
|
3545
3540
|
} | undefined;
|
3546
3541
|
type?: {
|
3547
3542
|
type: "changed";
|
@@ -3603,6 +3598,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3603
3598
|
old: string;
|
3604
3599
|
new: string;
|
3605
3600
|
} | undefined;
|
3601
|
+
name: string | {
|
3602
|
+
type: "changed";
|
3603
|
+
old: string;
|
3604
|
+
new: string;
|
3605
|
+
};
|
3606
3606
|
}[];
|
3607
3607
|
addedIndexes: Record<string, string>;
|
3608
3608
|
deletedIndexes: Record<string, string>;
|
@@ -3635,21 +3635,16 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3635
3635
|
name: string;
|
3636
3636
|
schema: string;
|
3637
3637
|
altered: {
|
3638
|
-
name: string | {
|
3639
|
-
type: "changed";
|
3640
|
-
old: string;
|
3641
|
-
new: string;
|
3642
|
-
};
|
3643
3638
|
default?: {
|
3644
|
-
type: "added";
|
3645
3639
|
value?: any;
|
3640
|
+
type: "added";
|
3646
3641
|
} | {
|
3647
|
-
type: "deleted";
|
3648
3642
|
value?: any;
|
3643
|
+
type: "deleted";
|
3649
3644
|
} | {
|
3650
|
-
type: "changed";
|
3651
3645
|
old?: any;
|
3652
3646
|
new?: any;
|
3647
|
+
type: "changed";
|
3653
3648
|
} | undefined;
|
3654
3649
|
type?: {
|
3655
3650
|
type: "changed";
|
@@ -3711,6 +3706,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3711
3706
|
old: string;
|
3712
3707
|
new: string;
|
3713
3708
|
} | undefined;
|
3709
|
+
name: string | {
|
3710
|
+
type: "changed";
|
3711
|
+
old: string;
|
3712
|
+
new: string;
|
3713
|
+
};
|
3714
3714
|
}[];
|
3715
3715
|
addedIndexes: Record<string, string>;
|
3716
3716
|
deletedIndexes: Record<string, string>;
|
@@ -3743,21 +3743,16 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3743
3743
|
name: string;
|
3744
3744
|
schema: string;
|
3745
3745
|
altered: {
|
3746
|
-
name: string | {
|
3747
|
-
type: "changed";
|
3748
|
-
old: string;
|
3749
|
-
new: string;
|
3750
|
-
};
|
3751
3746
|
default?: {
|
3752
|
-
type: "added";
|
3753
3747
|
value?: any;
|
3748
|
+
type: "added";
|
3754
3749
|
} | {
|
3755
|
-
type: "deleted";
|
3756
3750
|
value?: any;
|
3751
|
+
type: "deleted";
|
3757
3752
|
} | {
|
3758
|
-
type: "changed";
|
3759
3753
|
old?: any;
|
3760
3754
|
new?: any;
|
3755
|
+
type: "changed";
|
3761
3756
|
} | undefined;
|
3762
3757
|
type?: {
|
3763
3758
|
type: "changed";
|
@@ -3819,6 +3814,11 @@ export declare const diffResultSchemeSQLite: import("zod").ZodObject<{
|
|
3819
3814
|
old: string;
|
3820
3815
|
new: string;
|
3821
3816
|
} | undefined;
|
3817
|
+
name: string | {
|
3818
|
+
type: "changed";
|
3819
|
+
old: string;
|
3820
|
+
new: string;
|
3821
|
+
};
|
3822
3822
|
}[];
|
3823
3823
|
addedIndexes: Record<string, string>;
|
3824
3824
|
deletedIndexes: Record<string, string>;
|
@@ -3906,7 +3906,6 @@ export interface ColumnsResolverOutput<T extends {
|
|
3906
3906
|
}[];
|
3907
3907
|
deleted: T[];
|
3908
3908
|
}
|
3909
|
-
export type SchemaFrom<D> = D extends "pg" ? PgSchema : D extends "mysql" ? MySqlSchema : D extends "sqlite" ? SQLiteSchema : undefined;
|
3910
3909
|
export declare const applyPgSnapshotsDiff: (json1: PgSchemaSquashed, json2: PgSchemaSquashed, schemasResolver: (input: ResolverInput<Named>) => Promise<ResolverOutput<Named>>, enumsResolver: (input: ResolverInput<Enum>) => Promise<ResolverOutputWithMoved<Enum>>, tablesResolver: (input: ResolverInput<Table>) => Promise<ResolverOutputWithMoved<Table>>, columnsResolver: (input: ColumnsResolverInput<Column>) => Promise<ColumnsResolverOutput<Column>>, prevFull: PgSchema, curFull: PgSchema) => Promise<{
|
3911
3910
|
statements: JsonStatement[];
|
3912
3911
|
sqlStatements: string[];
|