drizzle-kit 0.21.2-f3756f2 → 0.21.3
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +17662 -11484
- package/index.d.mts +9 -1
- package/index.d.ts +9 -1
- package/package.json +4 -3
- package/payload.d.mts +10 -96
- package/payload.d.ts +10 -96
- package/payload.js +1307 -1732
- package/payload.mjs +1294 -1719
- package/utils-studio.js +614 -187
- package/utils-studio.mjs +614 -187
- package/utils.js +8 -90
- package/utils.mjs +8 -90
package/index.d.mts
CHANGED
@@ -2,7 +2,7 @@ import { SslOptions } from 'mysql2';
|
|
2
2
|
import * as zod from 'zod';
|
3
3
|
import { TypeOf } from 'zod';
|
4
4
|
|
5
|
-
declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
|
5
|
+
declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"d1-http">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
|
6
6
|
type Driver = TypeOf<typeof driver>;
|
7
7
|
|
8
8
|
declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
@@ -169,6 +169,14 @@ type Config = {
|
|
169
169
|
wranglerConfigPath: string;
|
170
170
|
dbName: string;
|
171
171
|
};
|
172
|
+
} | {
|
173
|
+
dialect: Verify<Dialect, "sqlite">;
|
174
|
+
driver: Verify<Driver, "d1-http">;
|
175
|
+
dbCredentials: {
|
176
|
+
accountId: string;
|
177
|
+
databaseId: string;
|
178
|
+
token: string;
|
179
|
+
};
|
172
180
|
} | {
|
173
181
|
dialect: Verify<Dialect, "sqlite">;
|
174
182
|
driver: Verify<Driver, "expo">;
|
package/index.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { SslOptions } from 'mysql2';
|
|
2
2
|
import * as zod from 'zod';
|
3
3
|
import { TypeOf } from 'zod';
|
4
4
|
|
5
|
-
declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
|
5
|
+
declare const driver: zod.ZodUnion<[zod.ZodUnion<[zod.ZodLiteral<"better-sqlite">, zod.ZodLiteral<"turso">, zod.ZodLiteral<"libsql">, zod.ZodLiteral<"d1">, zod.ZodLiteral<"d1-http">, zod.ZodLiteral<"expo">]>, zod.ZodLiteral<"aws-data-api">, zod.ZodLiteral<"mysql2">]>;
|
6
6
|
type Driver = TypeOf<typeof driver>;
|
7
7
|
|
8
8
|
declare const dialect: zod.ZodEnum<["postgresql", "mysql", "sqlite"]>;
|
@@ -169,6 +169,14 @@ type Config = {
|
|
169
169
|
wranglerConfigPath: string;
|
170
170
|
dbName: string;
|
171
171
|
};
|
172
|
+
} | {
|
173
|
+
dialect: Verify<Dialect, "sqlite">;
|
174
|
+
driver: Verify<Driver, "d1-http">;
|
175
|
+
dbCredentials: {
|
176
|
+
accountId: string;
|
177
|
+
databaseId: string;
|
178
|
+
token: string;
|
179
|
+
};
|
172
180
|
} | {
|
173
181
|
dialect: Verify<Dialect, "sqlite">;
|
174
182
|
driver: Verify<Driver, "expo">;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.21.
|
3
|
+
"version": "0.21.3",
|
4
4
|
"repository": "https://github.com/drizzle-team/drizzle-kit-mirror",
|
5
5
|
"author": "Drizzle Team",
|
6
6
|
"license": "MIT",
|
@@ -60,8 +60,8 @@
|
|
60
60
|
"chalk": "^5.2.0",
|
61
61
|
"dockerode": "^3.3.4",
|
62
62
|
"dotenv": "^16.0.3",
|
63
|
-
"drizzle-kit": "0.
|
64
|
-
"drizzle-orm": "0.30.9-
|
63
|
+
"drizzle-kit": "0.20.18",
|
64
|
+
"drizzle-orm": "0.30.9-f9be0ab",
|
65
65
|
"esbuild-node-externals": "^1.9.0",
|
66
66
|
"eslint": "^8.57.0",
|
67
67
|
"eslint-config-prettier": "^9.1.0",
|
@@ -70,6 +70,7 @@
|
|
70
70
|
"hono": "^4.1.5",
|
71
71
|
"minimatch": "^7.4.3",
|
72
72
|
"mysql2": "2.3.3",
|
73
|
+
"node-fetch": "^3.3.2",
|
73
74
|
"pg": "^8.11.3",
|
74
75
|
"pluralize": "^8.0.0",
|
75
76
|
"postgres": "^3.4.4",
|
package/payload.d.mts
CHANGED
@@ -5,7 +5,7 @@ import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
5
5
|
import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
|
6
6
|
|
7
7
|
declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
8
|
-
version: zod.ZodLiteral<"
|
8
|
+
version: zod.ZodLiteral<"6">;
|
9
9
|
dialect: zod.ZodLiteral<"postgresql">;
|
10
10
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
11
11
|
name: zod.ZodString;
|
@@ -43,58 +43,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
43
43
|
}>>;
|
44
44
|
indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
45
45
|
name: zod.ZodString;
|
46
|
-
columns: zod.ZodArray<zod.
|
47
|
-
expression: zod.ZodString;
|
48
|
-
isExpression: zod.ZodBoolean;
|
49
|
-
asc: zod.ZodBoolean;
|
50
|
-
nulls: zod.ZodOptional<zod.ZodString>;
|
51
|
-
opclass: zod.ZodOptional<zod.ZodString>;
|
52
|
-
}, "strip", zod.ZodTypeAny, {
|
53
|
-
expression: string;
|
54
|
-
isExpression: boolean;
|
55
|
-
asc: boolean;
|
56
|
-
nulls?: string | undefined;
|
57
|
-
opclass?: string | undefined;
|
58
|
-
}, {
|
59
|
-
expression: string;
|
60
|
-
isExpression: boolean;
|
61
|
-
asc: boolean;
|
62
|
-
nulls?: string | undefined;
|
63
|
-
opclass?: string | undefined;
|
64
|
-
}>, "many">;
|
46
|
+
columns: zod.ZodArray<zod.ZodString, "many">;
|
65
47
|
isUnique: zod.ZodBoolean;
|
66
|
-
with: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
67
|
-
method: zod.ZodDefault<zod.ZodString>;
|
68
|
-
where: zod.ZodOptional<zod.ZodString>;
|
69
|
-
concurrently: zod.ZodDefault<zod.ZodBoolean>;
|
70
48
|
}, "strict", zod.ZodTypeAny, {
|
71
49
|
name: string;
|
72
|
-
columns:
|
73
|
-
expression: string;
|
74
|
-
isExpression: boolean;
|
75
|
-
asc: boolean;
|
76
|
-
nulls?: string | undefined;
|
77
|
-
opclass?: string | undefined;
|
78
|
-
}[];
|
50
|
+
columns: string[];
|
79
51
|
isUnique: boolean;
|
80
|
-
method: string;
|
81
|
-
concurrently: boolean;
|
82
|
-
with?: Record<string, any> | undefined;
|
83
|
-
where?: string | undefined;
|
84
52
|
}, {
|
85
53
|
name: string;
|
86
|
-
columns:
|
87
|
-
expression: string;
|
88
|
-
isExpression: boolean;
|
89
|
-
asc: boolean;
|
90
|
-
nulls?: string | undefined;
|
91
|
-
opclass?: string | undefined;
|
92
|
-
}[];
|
54
|
+
columns: string[];
|
93
55
|
isUnique: boolean;
|
94
|
-
with?: Record<string, any> | undefined;
|
95
|
-
method?: string | undefined;
|
96
|
-
where?: string | undefined;
|
97
|
-
concurrently?: boolean | undefined;
|
98
56
|
}>>;
|
99
57
|
foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
100
58
|
name: zod.ZodString;
|
@@ -162,18 +120,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
162
120
|
}>;
|
163
121
|
indexes: Record<string, {
|
164
122
|
name: string;
|
165
|
-
columns:
|
166
|
-
expression: string;
|
167
|
-
isExpression: boolean;
|
168
|
-
asc: boolean;
|
169
|
-
nulls?: string | undefined;
|
170
|
-
opclass?: string | undefined;
|
171
|
-
}[];
|
123
|
+
columns: string[];
|
172
124
|
isUnique: boolean;
|
173
|
-
method: string;
|
174
|
-
concurrently: boolean;
|
175
|
-
with?: Record<string, any> | undefined;
|
176
|
-
where?: string | undefined;
|
177
125
|
}>;
|
178
126
|
foreignKeys: Record<string, {
|
179
127
|
name: string;
|
@@ -210,18 +158,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
210
158
|
}>;
|
211
159
|
indexes: Record<string, {
|
212
160
|
name: string;
|
213
|
-
columns:
|
214
|
-
expression: string;
|
215
|
-
isExpression: boolean;
|
216
|
-
asc: boolean;
|
217
|
-
nulls?: string | undefined;
|
218
|
-
opclass?: string | undefined;
|
219
|
-
}[];
|
161
|
+
columns: string[];
|
220
162
|
isUnique: boolean;
|
221
|
-
with?: Record<string, any> | undefined;
|
222
|
-
method?: string | undefined;
|
223
|
-
where?: string | undefined;
|
224
|
-
concurrently?: boolean | undefined;
|
225
163
|
}>;
|
226
164
|
foreignKeys: Record<string, {
|
227
165
|
name: string;
|
@@ -335,18 +273,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
335
273
|
}>;
|
336
274
|
indexes: Record<string, {
|
337
275
|
name: string;
|
338
|
-
columns:
|
339
|
-
expression: string;
|
340
|
-
isExpression: boolean;
|
341
|
-
asc: boolean;
|
342
|
-
nulls?: string | undefined;
|
343
|
-
opclass?: string | undefined;
|
344
|
-
}[];
|
276
|
+
columns: string[];
|
345
277
|
isUnique: boolean;
|
346
|
-
method: string;
|
347
|
-
concurrently: boolean;
|
348
|
-
with?: Record<string, any> | undefined;
|
349
|
-
where?: string | undefined;
|
350
278
|
}>;
|
351
279
|
foreignKeys: Record<string, {
|
352
280
|
name: string;
|
@@ -371,7 +299,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
371
299
|
}>;
|
372
300
|
id: string;
|
373
301
|
prevId: string;
|
374
|
-
version: "
|
302
|
+
version: "6";
|
375
303
|
dialect: "postgresql";
|
376
304
|
schemas: Record<string, string>;
|
377
305
|
_meta: {
|
@@ -409,18 +337,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
409
337
|
}>;
|
410
338
|
indexes: Record<string, {
|
411
339
|
name: string;
|
412
|
-
columns:
|
413
|
-
expression: string;
|
414
|
-
isExpression: boolean;
|
415
|
-
asc: boolean;
|
416
|
-
nulls?: string | undefined;
|
417
|
-
opclass?: string | undefined;
|
418
|
-
}[];
|
340
|
+
columns: string[];
|
419
341
|
isUnique: boolean;
|
420
|
-
with?: Record<string, any> | undefined;
|
421
|
-
method?: string | undefined;
|
422
|
-
where?: string | undefined;
|
423
|
-
concurrently?: boolean | undefined;
|
424
342
|
}>;
|
425
343
|
foreignKeys: Record<string, {
|
426
344
|
name: string;
|
@@ -445,7 +363,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
445
363
|
}>;
|
446
364
|
id: string;
|
447
365
|
prevId: string;
|
448
|
-
version: "
|
366
|
+
version: "6";
|
449
367
|
dialect: "postgresql";
|
450
368
|
schemas: Record<string, string>;
|
451
369
|
_meta: {
|
@@ -1101,10 +1019,6 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1101
1019
|
name: string;
|
1102
1020
|
columns: string[];
|
1103
1021
|
isUnique: boolean;
|
1104
|
-
method: string;
|
1105
|
-
concurrently: boolean;
|
1106
|
-
with?: Record<string, string> | undefined;
|
1107
|
-
where?: string | undefined;
|
1108
1022
|
}>;
|
1109
1023
|
foreignKeys: Record<string, {
|
1110
1024
|
name: string;
|
package/payload.d.ts
CHANGED
@@ -5,7 +5,7 @@ import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
5
5
|
import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
|
6
6
|
|
7
7
|
declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
8
|
-
version: zod.ZodLiteral<"
|
8
|
+
version: zod.ZodLiteral<"6">;
|
9
9
|
dialect: zod.ZodLiteral<"postgresql">;
|
10
10
|
tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
11
11
|
name: zod.ZodString;
|
@@ -43,58 +43,16 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
43
43
|
}>>;
|
44
44
|
indexes: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
45
45
|
name: zod.ZodString;
|
46
|
-
columns: zod.ZodArray<zod.
|
47
|
-
expression: zod.ZodString;
|
48
|
-
isExpression: zod.ZodBoolean;
|
49
|
-
asc: zod.ZodBoolean;
|
50
|
-
nulls: zod.ZodOptional<zod.ZodString>;
|
51
|
-
opclass: zod.ZodOptional<zod.ZodString>;
|
52
|
-
}, "strip", zod.ZodTypeAny, {
|
53
|
-
expression: string;
|
54
|
-
isExpression: boolean;
|
55
|
-
asc: boolean;
|
56
|
-
nulls?: string | undefined;
|
57
|
-
opclass?: string | undefined;
|
58
|
-
}, {
|
59
|
-
expression: string;
|
60
|
-
isExpression: boolean;
|
61
|
-
asc: boolean;
|
62
|
-
nulls?: string | undefined;
|
63
|
-
opclass?: string | undefined;
|
64
|
-
}>, "many">;
|
46
|
+
columns: zod.ZodArray<zod.ZodString, "many">;
|
65
47
|
isUnique: zod.ZodBoolean;
|
66
|
-
with: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
|
67
|
-
method: zod.ZodDefault<zod.ZodString>;
|
68
|
-
where: zod.ZodOptional<zod.ZodString>;
|
69
|
-
concurrently: zod.ZodDefault<zod.ZodBoolean>;
|
70
48
|
}, "strict", zod.ZodTypeAny, {
|
71
49
|
name: string;
|
72
|
-
columns:
|
73
|
-
expression: string;
|
74
|
-
isExpression: boolean;
|
75
|
-
asc: boolean;
|
76
|
-
nulls?: string | undefined;
|
77
|
-
opclass?: string | undefined;
|
78
|
-
}[];
|
50
|
+
columns: string[];
|
79
51
|
isUnique: boolean;
|
80
|
-
method: string;
|
81
|
-
concurrently: boolean;
|
82
|
-
with?: Record<string, any> | undefined;
|
83
|
-
where?: string | undefined;
|
84
52
|
}, {
|
85
53
|
name: string;
|
86
|
-
columns:
|
87
|
-
expression: string;
|
88
|
-
isExpression: boolean;
|
89
|
-
asc: boolean;
|
90
|
-
nulls?: string | undefined;
|
91
|
-
opclass?: string | undefined;
|
92
|
-
}[];
|
54
|
+
columns: string[];
|
93
55
|
isUnique: boolean;
|
94
|
-
with?: Record<string, any> | undefined;
|
95
|
-
method?: string | undefined;
|
96
|
-
where?: string | undefined;
|
97
|
-
concurrently?: boolean | undefined;
|
98
56
|
}>>;
|
99
57
|
foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
|
100
58
|
name: zod.ZodString;
|
@@ -162,18 +120,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
162
120
|
}>;
|
163
121
|
indexes: Record<string, {
|
164
122
|
name: string;
|
165
|
-
columns:
|
166
|
-
expression: string;
|
167
|
-
isExpression: boolean;
|
168
|
-
asc: boolean;
|
169
|
-
nulls?: string | undefined;
|
170
|
-
opclass?: string | undefined;
|
171
|
-
}[];
|
123
|
+
columns: string[];
|
172
124
|
isUnique: boolean;
|
173
|
-
method: string;
|
174
|
-
concurrently: boolean;
|
175
|
-
with?: Record<string, any> | undefined;
|
176
|
-
where?: string | undefined;
|
177
125
|
}>;
|
178
126
|
foreignKeys: Record<string, {
|
179
127
|
name: string;
|
@@ -210,18 +158,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
210
158
|
}>;
|
211
159
|
indexes: Record<string, {
|
212
160
|
name: string;
|
213
|
-
columns:
|
214
|
-
expression: string;
|
215
|
-
isExpression: boolean;
|
216
|
-
asc: boolean;
|
217
|
-
nulls?: string | undefined;
|
218
|
-
opclass?: string | undefined;
|
219
|
-
}[];
|
161
|
+
columns: string[];
|
220
162
|
isUnique: boolean;
|
221
|
-
with?: Record<string, any> | undefined;
|
222
|
-
method?: string | undefined;
|
223
|
-
where?: string | undefined;
|
224
|
-
concurrently?: boolean | undefined;
|
225
163
|
}>;
|
226
164
|
foreignKeys: Record<string, {
|
227
165
|
name: string;
|
@@ -335,18 +273,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
335
273
|
}>;
|
336
274
|
indexes: Record<string, {
|
337
275
|
name: string;
|
338
|
-
columns:
|
339
|
-
expression: string;
|
340
|
-
isExpression: boolean;
|
341
|
-
asc: boolean;
|
342
|
-
nulls?: string | undefined;
|
343
|
-
opclass?: string | undefined;
|
344
|
-
}[];
|
276
|
+
columns: string[];
|
345
277
|
isUnique: boolean;
|
346
|
-
method: string;
|
347
|
-
concurrently: boolean;
|
348
|
-
with?: Record<string, any> | undefined;
|
349
|
-
where?: string | undefined;
|
350
278
|
}>;
|
351
279
|
foreignKeys: Record<string, {
|
352
280
|
name: string;
|
@@ -371,7 +299,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
371
299
|
}>;
|
372
300
|
id: string;
|
373
301
|
prevId: string;
|
374
|
-
version: "
|
302
|
+
version: "6";
|
375
303
|
dialect: "postgresql";
|
376
304
|
schemas: Record<string, string>;
|
377
305
|
_meta: {
|
@@ -409,18 +337,8 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
409
337
|
}>;
|
410
338
|
indexes: Record<string, {
|
411
339
|
name: string;
|
412
|
-
columns:
|
413
|
-
expression: string;
|
414
|
-
isExpression: boolean;
|
415
|
-
asc: boolean;
|
416
|
-
nulls?: string | undefined;
|
417
|
-
opclass?: string | undefined;
|
418
|
-
}[];
|
340
|
+
columns: string[];
|
419
341
|
isUnique: boolean;
|
420
|
-
with?: Record<string, any> | undefined;
|
421
|
-
method?: string | undefined;
|
422
|
-
where?: string | undefined;
|
423
|
-
concurrently?: boolean | undefined;
|
424
342
|
}>;
|
425
343
|
foreignKeys: Record<string, {
|
426
344
|
name: string;
|
@@ -445,7 +363,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
|
|
445
363
|
}>;
|
446
364
|
id: string;
|
447
365
|
prevId: string;
|
448
|
-
version: "
|
366
|
+
version: "6";
|
449
367
|
dialect: "postgresql";
|
450
368
|
schemas: Record<string, string>;
|
451
369
|
_meta: {
|
@@ -1101,10 +1019,6 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
|
|
1101
1019
|
name: string;
|
1102
1020
|
columns: string[];
|
1103
1021
|
isUnique: boolean;
|
1104
|
-
method: string;
|
1105
|
-
concurrently: boolean;
|
1106
|
-
with?: Record<string, string> | undefined;
|
1107
|
-
where?: string | undefined;
|
1108
1022
|
}>;
|
1109
1023
|
foreignKeys: Record<string, {
|
1110
1024
|
name: string;
|