drizzle-kit 0.21.2-dec02d3 → 0.21.2-f3756f2

Sign up to get free protection for your applications and to get access to all the features.
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<"d1-http">, 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<"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,14 +169,6 @@ 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
- };
180
172
  } | {
181
173
  dialect: Verify<Dialect, "sqlite">;
182
174
  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<"d1-http">, 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<"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,14 +169,6 @@ 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
- };
180
172
  } | {
181
173
  dialect: Verify<Dialect, "sqlite">;
182
174
  driver: Verify<Driver, "expo">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.21.2-dec02d3",
3
+ "version": "0.21.2-f3756f2",
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.20.18",
64
- "drizzle-orm": "0.30.9-f9be0ab",
63
+ "drizzle-kit": "0.21.2",
64
+ "drizzle-orm": "0.30.9-33a34e3",
65
65
  "esbuild-node-externals": "^1.9.0",
66
66
  "eslint": "^8.57.0",
67
67
  "eslint-config-prettier": "^9.1.0",
@@ -70,7 +70,6 @@
70
70
  "hono": "^4.1.5",
71
71
  "minimatch": "^7.4.3",
72
72
  "mysql2": "2.3.3",
73
- "node-fetch": "^3.3.2",
74
73
  "pg": "^8.11.3",
75
74
  "pluralize": "^8.0.0",
76
75
  "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<"6">;
8
+ version: zod.ZodLiteral<"7">;
9
9
  dialect: zod.ZodLiteral<"postgresql">;
10
10
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
11
11
  name: zod.ZodString;
@@ -43,16 +43,58 @@ 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.ZodString, "many">;
46
+ columns: zod.ZodArray<zod.ZodObject<{
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">;
47
65
  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>;
48
70
  }, "strict", zod.ZodTypeAny, {
49
71
  name: string;
50
- columns: string[];
72
+ columns: {
73
+ expression: string;
74
+ isExpression: boolean;
75
+ asc: boolean;
76
+ nulls?: string | undefined;
77
+ opclass?: string | undefined;
78
+ }[];
51
79
  isUnique: boolean;
80
+ method: string;
81
+ concurrently: boolean;
82
+ with?: Record<string, any> | undefined;
83
+ where?: string | undefined;
52
84
  }, {
53
85
  name: string;
54
- columns: string[];
86
+ columns: {
87
+ expression: string;
88
+ isExpression: boolean;
89
+ asc: boolean;
90
+ nulls?: string | undefined;
91
+ opclass?: string | undefined;
92
+ }[];
55
93
  isUnique: boolean;
94
+ with?: Record<string, any> | undefined;
95
+ method?: string | undefined;
96
+ where?: string | undefined;
97
+ concurrently?: boolean | undefined;
56
98
  }>>;
57
99
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
58
100
  name: zod.ZodString;
@@ -120,8 +162,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
120
162
  }>;
121
163
  indexes: Record<string, {
122
164
  name: string;
123
- columns: string[];
165
+ columns: {
166
+ expression: string;
167
+ isExpression: boolean;
168
+ asc: boolean;
169
+ nulls?: string | undefined;
170
+ opclass?: string | undefined;
171
+ }[];
124
172
  isUnique: boolean;
173
+ method: string;
174
+ concurrently: boolean;
175
+ with?: Record<string, any> | undefined;
176
+ where?: string | undefined;
125
177
  }>;
126
178
  foreignKeys: Record<string, {
127
179
  name: string;
@@ -158,8 +210,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
158
210
  }>;
159
211
  indexes: Record<string, {
160
212
  name: string;
161
- columns: string[];
213
+ columns: {
214
+ expression: string;
215
+ isExpression: boolean;
216
+ asc: boolean;
217
+ nulls?: string | undefined;
218
+ opclass?: string | undefined;
219
+ }[];
162
220
  isUnique: boolean;
221
+ with?: Record<string, any> | undefined;
222
+ method?: string | undefined;
223
+ where?: string | undefined;
224
+ concurrently?: boolean | undefined;
163
225
  }>;
164
226
  foreignKeys: Record<string, {
165
227
  name: string;
@@ -273,8 +335,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
273
335
  }>;
274
336
  indexes: Record<string, {
275
337
  name: string;
276
- columns: string[];
338
+ columns: {
339
+ expression: string;
340
+ isExpression: boolean;
341
+ asc: boolean;
342
+ nulls?: string | undefined;
343
+ opclass?: string | undefined;
344
+ }[];
277
345
  isUnique: boolean;
346
+ method: string;
347
+ concurrently: boolean;
348
+ with?: Record<string, any> | undefined;
349
+ where?: string | undefined;
278
350
  }>;
279
351
  foreignKeys: Record<string, {
280
352
  name: string;
@@ -299,7 +371,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
299
371
  }>;
300
372
  id: string;
301
373
  prevId: string;
302
- version: "6";
374
+ version: "7";
303
375
  dialect: "postgresql";
304
376
  schemas: Record<string, string>;
305
377
  _meta: {
@@ -337,8 +409,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
337
409
  }>;
338
410
  indexes: Record<string, {
339
411
  name: string;
340
- columns: string[];
412
+ columns: {
413
+ expression: string;
414
+ isExpression: boolean;
415
+ asc: boolean;
416
+ nulls?: string | undefined;
417
+ opclass?: string | undefined;
418
+ }[];
341
419
  isUnique: boolean;
420
+ with?: Record<string, any> | undefined;
421
+ method?: string | undefined;
422
+ where?: string | undefined;
423
+ concurrently?: boolean | undefined;
342
424
  }>;
343
425
  foreignKeys: Record<string, {
344
426
  name: string;
@@ -363,7 +445,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
363
445
  }>;
364
446
  id: string;
365
447
  prevId: string;
366
- version: "6";
448
+ version: "7";
367
449
  dialect: "postgresql";
368
450
  schemas: Record<string, string>;
369
451
  _meta: {
@@ -1019,6 +1101,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
1019
1101
  name: string;
1020
1102
  columns: string[];
1021
1103
  isUnique: boolean;
1104
+ method: string;
1105
+ concurrently: boolean;
1106
+ with?: Record<string, string> | undefined;
1107
+ where?: string | undefined;
1022
1108
  }>;
1023
1109
  foreignKeys: Record<string, {
1024
1110
  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<"6">;
8
+ version: zod.ZodLiteral<"7">;
9
9
  dialect: zod.ZodLiteral<"postgresql">;
10
10
  tables: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
11
11
  name: zod.ZodString;
@@ -43,16 +43,58 @@ 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.ZodString, "many">;
46
+ columns: zod.ZodArray<zod.ZodObject<{
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">;
47
65
  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>;
48
70
  }, "strict", zod.ZodTypeAny, {
49
71
  name: string;
50
- columns: string[];
72
+ columns: {
73
+ expression: string;
74
+ isExpression: boolean;
75
+ asc: boolean;
76
+ nulls?: string | undefined;
77
+ opclass?: string | undefined;
78
+ }[];
51
79
  isUnique: boolean;
80
+ method: string;
81
+ concurrently: boolean;
82
+ with?: Record<string, any> | undefined;
83
+ where?: string | undefined;
52
84
  }, {
53
85
  name: string;
54
- columns: string[];
86
+ columns: {
87
+ expression: string;
88
+ isExpression: boolean;
89
+ asc: boolean;
90
+ nulls?: string | undefined;
91
+ opclass?: string | undefined;
92
+ }[];
55
93
  isUnique: boolean;
94
+ with?: Record<string, any> | undefined;
95
+ method?: string | undefined;
96
+ where?: string | undefined;
97
+ concurrently?: boolean | undefined;
56
98
  }>>;
57
99
  foreignKeys: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
58
100
  name: zod.ZodString;
@@ -120,8 +162,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
120
162
  }>;
121
163
  indexes: Record<string, {
122
164
  name: string;
123
- columns: string[];
165
+ columns: {
166
+ expression: string;
167
+ isExpression: boolean;
168
+ asc: boolean;
169
+ nulls?: string | undefined;
170
+ opclass?: string | undefined;
171
+ }[];
124
172
  isUnique: boolean;
173
+ method: string;
174
+ concurrently: boolean;
175
+ with?: Record<string, any> | undefined;
176
+ where?: string | undefined;
125
177
  }>;
126
178
  foreignKeys: Record<string, {
127
179
  name: string;
@@ -158,8 +210,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
158
210
  }>;
159
211
  indexes: Record<string, {
160
212
  name: string;
161
- columns: string[];
213
+ columns: {
214
+ expression: string;
215
+ isExpression: boolean;
216
+ asc: boolean;
217
+ nulls?: string | undefined;
218
+ opclass?: string | undefined;
219
+ }[];
162
220
  isUnique: boolean;
221
+ with?: Record<string, any> | undefined;
222
+ method?: string | undefined;
223
+ where?: string | undefined;
224
+ concurrently?: boolean | undefined;
163
225
  }>;
164
226
  foreignKeys: Record<string, {
165
227
  name: string;
@@ -273,8 +335,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
273
335
  }>;
274
336
  indexes: Record<string, {
275
337
  name: string;
276
- columns: string[];
338
+ columns: {
339
+ expression: string;
340
+ isExpression: boolean;
341
+ asc: boolean;
342
+ nulls?: string | undefined;
343
+ opclass?: string | undefined;
344
+ }[];
277
345
  isUnique: boolean;
346
+ method: string;
347
+ concurrently: boolean;
348
+ with?: Record<string, any> | undefined;
349
+ where?: string | undefined;
278
350
  }>;
279
351
  foreignKeys: Record<string, {
280
352
  name: string;
@@ -299,7 +371,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
299
371
  }>;
300
372
  id: string;
301
373
  prevId: string;
302
- version: "6";
374
+ version: "7";
303
375
  dialect: "postgresql";
304
376
  schemas: Record<string, string>;
305
377
  _meta: {
@@ -337,8 +409,18 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
337
409
  }>;
338
410
  indexes: Record<string, {
339
411
  name: string;
340
- columns: string[];
412
+ columns: {
413
+ expression: string;
414
+ isExpression: boolean;
415
+ asc: boolean;
416
+ nulls?: string | undefined;
417
+ opclass?: string | undefined;
418
+ }[];
341
419
  isUnique: boolean;
420
+ with?: Record<string, any> | undefined;
421
+ method?: string | undefined;
422
+ where?: string | undefined;
423
+ concurrently?: boolean | undefined;
342
424
  }>;
343
425
  foreignKeys: Record<string, {
344
426
  name: string;
@@ -363,7 +445,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
363
445
  }>;
364
446
  id: string;
365
447
  prevId: string;
366
- version: "6";
448
+ version: "7";
367
449
  dialect: "postgresql";
368
450
  schemas: Record<string, string>;
369
451
  _meta: {
@@ -1019,6 +1101,10 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
1019
1101
  name: string;
1020
1102
  columns: string[];
1021
1103
  isUnique: boolean;
1104
+ method: string;
1105
+ concurrently: boolean;
1106
+ with?: Record<string, string> | undefined;
1107
+ where?: string | undefined;
1022
1108
  }>;
1023
1109
  foreignKeys: Record<string, {
1024
1110
  name: string;