drizzle-kit 0.26.0 → 0.26.2-74d2f4c

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.
package/api.d.mts CHANGED
@@ -219,7 +219,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
219
219
  value: string;
220
220
  }> | undefined;
221
221
  }>>;
222
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
222
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
223
223
  name: zod.ZodString;
224
224
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
225
225
  name: zod.ZodString;
@@ -310,7 +310,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
310
310
  isExisting: boolean;
311
311
  withCheckOption?: "local" | "cascaded" | undefined;
312
312
  definition?: string | undefined;
313
- }>>;
313
+ }>>>;
314
314
  _meta: zod.ZodObject<{
315
315
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
316
316
  columns: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -523,7 +523,19 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
523
523
  columns: Record<string, string>;
524
524
  tables: Record<string, string>;
525
525
  };
526
- views: Record<string, {
526
+ internal?: {
527
+ indexes?: Record<string, {
528
+ columns: Record<string, {
529
+ isExpression?: boolean | undefined;
530
+ } | undefined>;
531
+ } | undefined> | undefined;
532
+ tables?: Record<string, {
533
+ columns: Record<string, {
534
+ isDefaultAnExpression?: boolean | undefined;
535
+ } | undefined>;
536
+ } | undefined> | undefined;
537
+ } | undefined;
538
+ views?: Record<string, {
527
539
  name: string;
528
540
  columns: Record<string, {
529
541
  name: string;
@@ -543,19 +555,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
543
555
  isExisting: boolean;
544
556
  withCheckOption?: "local" | "cascaded" | undefined;
545
557
  definition?: string | undefined;
546
- }>;
547
- internal?: {
548
- indexes?: Record<string, {
549
- columns: Record<string, {
550
- isExpression?: boolean | undefined;
551
- } | undefined>;
552
- } | undefined> | undefined;
553
- tables?: Record<string, {
554
- columns: Record<string, {
555
- isDefaultAnExpression?: boolean | undefined;
556
- } | undefined>;
557
- } | undefined> | undefined;
558
- } | undefined;
558
+ }> | undefined;
559
559
  }>;
560
560
  type MySqlSchema = TypeOf<typeof schema$1>;
561
561
 
@@ -1854,7 +1854,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1854
1854
  value: string;
1855
1855
  }> | undefined;
1856
1856
  }>>;
1857
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1857
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1858
1858
  name: zod.ZodString;
1859
1859
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1860
1860
  name: zod.ZodString;
@@ -1930,7 +1930,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1930
1930
  }>;
1931
1931
  isExisting: boolean;
1932
1932
  definition?: string | undefined;
1933
- }>>;
1933
+ }>>>;
1934
1934
  enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
1935
1935
  _meta: zod.ZodObject<{
1936
1936
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -2103,7 +2103,15 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2103
2103
  columns: Record<string, string>;
2104
2104
  tables: Record<string, string>;
2105
2105
  };
2106
- views: Record<string, {
2106
+ enums: {};
2107
+ internal?: {
2108
+ indexes?: Record<string, {
2109
+ columns: Record<string, {
2110
+ isExpression?: boolean | undefined;
2111
+ } | undefined>;
2112
+ } | undefined> | undefined;
2113
+ } | undefined;
2114
+ views?: Record<string, {
2107
2115
  name: string;
2108
2116
  columns: Record<string, {
2109
2117
  name: string;
@@ -2119,15 +2127,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2119
2127
  }>;
2120
2128
  isExisting: boolean;
2121
2129
  definition?: string | undefined;
2122
- }>;
2123
- enums: {};
2124
- internal?: {
2125
- indexes?: Record<string, {
2126
- columns: Record<string, {
2127
- isExpression?: boolean | undefined;
2128
- } | undefined>;
2129
- } | undefined> | undefined;
2130
- } | undefined;
2130
+ }> | undefined;
2131
2131
  }>;
2132
2132
  type SQLiteSchema = TypeOf<typeof schema>;
2133
2133
 
package/api.d.ts CHANGED
@@ -219,7 +219,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
219
219
  value: string;
220
220
  }> | undefined;
221
221
  }>>;
222
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
222
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<zod.objectUtil.extendShape<{
223
223
  name: zod.ZodString;
224
224
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
225
225
  name: zod.ZodString;
@@ -310,7 +310,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
310
310
  isExisting: boolean;
311
311
  withCheckOption?: "local" | "cascaded" | undefined;
312
312
  definition?: string | undefined;
313
- }>>;
313
+ }>>>;
314
314
  _meta: zod.ZodObject<{
315
315
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
316
316
  columns: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -523,7 +523,19 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
523
523
  columns: Record<string, string>;
524
524
  tables: Record<string, string>;
525
525
  };
526
- views: Record<string, {
526
+ internal?: {
527
+ indexes?: Record<string, {
528
+ columns: Record<string, {
529
+ isExpression?: boolean | undefined;
530
+ } | undefined>;
531
+ } | undefined> | undefined;
532
+ tables?: Record<string, {
533
+ columns: Record<string, {
534
+ isDefaultAnExpression?: boolean | undefined;
535
+ } | undefined>;
536
+ } | undefined> | undefined;
537
+ } | undefined;
538
+ views?: Record<string, {
527
539
  name: string;
528
540
  columns: Record<string, {
529
541
  name: string;
@@ -543,19 +555,7 @@ declare const schema$1: zod.ZodObject<zod.objectUtil.extendShape<{
543
555
  isExisting: boolean;
544
556
  withCheckOption?: "local" | "cascaded" | undefined;
545
557
  definition?: string | undefined;
546
- }>;
547
- internal?: {
548
- indexes?: Record<string, {
549
- columns: Record<string, {
550
- isExpression?: boolean | undefined;
551
- } | undefined>;
552
- } | undefined> | undefined;
553
- tables?: Record<string, {
554
- columns: Record<string, {
555
- isDefaultAnExpression?: boolean | undefined;
556
- } | undefined>;
557
- } | undefined> | undefined;
558
- } | undefined;
558
+ }> | undefined;
559
559
  }>;
560
560
  type MySqlSchema = TypeOf<typeof schema$1>;
561
561
 
@@ -1854,7 +1854,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1854
1854
  value: string;
1855
1855
  }> | undefined;
1856
1856
  }>>;
1857
- views: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1857
+ views: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1858
1858
  name: zod.ZodString;
1859
1859
  columns: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1860
1860
  name: zod.ZodString;
@@ -1930,7 +1930,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
1930
1930
  }>;
1931
1931
  isExisting: boolean;
1932
1932
  definition?: string | undefined;
1933
- }>>;
1933
+ }>>>;
1934
1934
  enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>;
1935
1935
  _meta: zod.ZodObject<{
1936
1936
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -2103,7 +2103,15 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2103
2103
  columns: Record<string, string>;
2104
2104
  tables: Record<string, string>;
2105
2105
  };
2106
- views: Record<string, {
2106
+ enums: {};
2107
+ internal?: {
2108
+ indexes?: Record<string, {
2109
+ columns: Record<string, {
2110
+ isExpression?: boolean | undefined;
2111
+ } | undefined>;
2112
+ } | undefined> | undefined;
2113
+ } | undefined;
2114
+ views?: Record<string, {
2107
2115
  name: string;
2108
2116
  columns: Record<string, {
2109
2117
  name: string;
@@ -2119,15 +2127,7 @@ declare const schema: zod.ZodObject<zod.objectUtil.extendShape<{
2119
2127
  }>;
2120
2128
  isExisting: boolean;
2121
2129
  definition?: string | undefined;
2122
- }>;
2123
- enums: {};
2124
- internal?: {
2125
- indexes?: Record<string, {
2126
- columns: Record<string, {
2127
- isExpression?: boolean | undefined;
2128
- } | undefined>;
2129
- } | undefined> | undefined;
2130
- } | undefined;
2130
+ }> | undefined;
2131
2131
  }>;
2132
2132
  type SQLiteSchema = TypeOf<typeof schema>;
2133
2133
 
package/api.js CHANGED
@@ -7509,7 +7509,7 @@ var init_mysqlSchema = __esm({
7509
7509
  version: literalType("5"),
7510
7510
  dialect,
7511
7511
  tables: recordType(stringType(), table),
7512
- views: recordType(stringType(), view),
7512
+ views: recordType(stringType(), view).default({}),
7513
7513
  _meta: objectType({
7514
7514
  tables: recordType(stringType(), stringType()),
7515
7515
  columns: recordType(stringType(), stringType())
@@ -8479,7 +8479,7 @@ var init_sqliteSchema = __esm({
8479
8479
  version: literalType("4"),
8480
8480
  dialect: dialect2,
8481
8481
  tables: recordType(stringType(), table3),
8482
- views: recordType(stringType(), view3),
8482
+ views: recordType(stringType(), view3).default({}),
8483
8483
  enums: objectType({})
8484
8484
  }).strict();
8485
8485
  schemaInternalV52 = objectType({
@@ -8508,7 +8508,7 @@ var init_sqliteSchema = __esm({
8508
8508
  version: latestVersion,
8509
8509
  dialect: dialect2,
8510
8510
  tables: recordType(stringType(), table3),
8511
- views: recordType(stringType(), view3),
8511
+ views: recordType(stringType(), view3).default({}),
8512
8512
  enums: objectType({}),
8513
8513
  _meta: objectType({
8514
8514
  tables: recordType(stringType(), stringType()),
@@ -20372,7 +20372,7 @@ var version;
20372
20372
  var init_version = __esm({
20373
20373
  "../drizzle-orm/dist/version.js"() {
20374
20374
  "use strict";
20375
- version = "0.35.0";
20375
+ version = "0.35.1";
20376
20376
  }
20377
20377
  });
20378
20378
 
package/api.mjs CHANGED
@@ -7514,7 +7514,7 @@ var init_mysqlSchema = __esm({
7514
7514
  version: literalType("5"),
7515
7515
  dialect,
7516
7516
  tables: recordType(stringType(), table),
7517
- views: recordType(stringType(), view),
7517
+ views: recordType(stringType(), view).default({}),
7518
7518
  _meta: objectType({
7519
7519
  tables: recordType(stringType(), stringType()),
7520
7520
  columns: recordType(stringType(), stringType())
@@ -8484,7 +8484,7 @@ var init_sqliteSchema = __esm({
8484
8484
  version: literalType("4"),
8485
8485
  dialect: dialect2,
8486
8486
  tables: recordType(stringType(), table3),
8487
- views: recordType(stringType(), view3),
8487
+ views: recordType(stringType(), view3).default({}),
8488
8488
  enums: objectType({})
8489
8489
  }).strict();
8490
8490
  schemaInternalV52 = objectType({
@@ -8513,7 +8513,7 @@ var init_sqliteSchema = __esm({
8513
8513
  version: latestVersion,
8514
8514
  dialect: dialect2,
8515
8515
  tables: recordType(stringType(), table3),
8516
- views: recordType(stringType(), view3),
8516
+ views: recordType(stringType(), view3).default({}),
8517
8517
  enums: objectType({}),
8518
8518
  _meta: objectType({
8519
8519
  tables: recordType(stringType(), stringType()),
@@ -20377,7 +20377,7 @@ var version;
20377
20377
  var init_version = __esm({
20378
20378
  "../drizzle-orm/dist/version.js"() {
20379
20379
  "use strict";
20380
- version = "0.35.0";
20380
+ version = "0.35.1";
20381
20381
  }
20382
20382
  });
20383
20383
 
package/bin.cjs CHANGED
@@ -5566,7 +5566,7 @@ var init_mysqlSchema = __esm({
5566
5566
  version: literalType("5"),
5567
5567
  dialect,
5568
5568
  tables: recordType(stringType(), table),
5569
- views: recordType(stringType(), view),
5569
+ views: recordType(stringType(), view).default({}),
5570
5570
  _meta: objectType({
5571
5571
  tables: recordType(stringType(), stringType()),
5572
5572
  columns: recordType(stringType(), stringType())
@@ -6536,7 +6536,7 @@ var init_sqliteSchema = __esm({
6536
6536
  version: literalType("4"),
6537
6537
  dialect: dialect2,
6538
6538
  tables: recordType(stringType(), table3),
6539
- views: recordType(stringType(), view3),
6539
+ views: recordType(stringType(), view3).default({}),
6540
6540
  enums: objectType({})
6541
6541
  }).strict();
6542
6542
  schemaInternalV52 = objectType({
@@ -6565,7 +6565,7 @@ var init_sqliteSchema = __esm({
6565
6565
  version: latestVersion,
6566
6566
  dialect: dialect2,
6567
6567
  tables: recordType(stringType(), table3),
6568
- views: recordType(stringType(), view3),
6568
+ views: recordType(stringType(), view3).default({}),
6569
6569
  enums: objectType({}),
6570
6570
  _meta: objectType({
6571
6571
  tables: recordType(stringType(), stringType()),
@@ -8842,7 +8842,7 @@ var init_utils2 = __esm({
8842
8842
  process.exit(1);
8843
8843
  }
8844
8844
  };
8845
- requiredApiVersion = 8;
8845
+ requiredApiVersion = 9;
8846
8846
  assertOrmCoreVersion = async () => {
8847
8847
  try {
8848
8848
  const { compatibilityVersion } = await import("drizzle-orm/version");
@@ -87624,7 +87624,7 @@ init_utils2();
87624
87624
  var version2 = async () => {
87625
87625
  const { npmVersion } = await ormCoreVersions();
87626
87626
  const ormVersion = npmVersion ? `drizzle-orm: v${npmVersion}` : "";
87627
- const envVersion = "0.26.0";
87627
+ const envVersion = "0.26.2-74d2f4c";
87628
87628
  const kitVersion = envVersion ? `v${envVersion}` : "--";
87629
87629
  const versions = `drizzle-kit: ${kitVersion}
87630
87630
  ${ormVersion}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.26.0",
3
+ "version": "0.26.2-74d2f4c",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
package/utils.js CHANGED
@@ -4986,7 +4986,7 @@ var schemaInternal = objectType({
4986
4986
  version: literalType("5"),
4987
4987
  dialect,
4988
4988
  tables: recordType(stringType(), table),
4989
- views: recordType(stringType(), view),
4989
+ views: recordType(stringType(), view).default({}),
4990
4990
  _meta: objectType({
4991
4991
  tables: recordType(stringType(), stringType()),
4992
4992
  columns: recordType(stringType(), stringType())
@@ -5566,7 +5566,7 @@ var schemaInternalV42 = objectType({
5566
5566
  version: literalType("4"),
5567
5567
  dialect: dialect2,
5568
5568
  tables: recordType(stringType(), table3),
5569
- views: recordType(stringType(), view3),
5569
+ views: recordType(stringType(), view3).default({}),
5570
5570
  enums: objectType({})
5571
5571
  }).strict();
5572
5572
  var schemaInternalV52 = objectType({
@@ -5595,7 +5595,7 @@ var schemaInternal2 = objectType({
5595
5595
  version: latestVersion,
5596
5596
  dialect: dialect2,
5597
5597
  tables: recordType(stringType(), table3),
5598
- views: recordType(stringType(), view3),
5598
+ views: recordType(stringType(), view3).default({}),
5599
5599
  enums: objectType({}),
5600
5600
  _meta: objectType({
5601
5601
  tables: recordType(stringType(), stringType()),
package/utils.mjs CHANGED
@@ -4964,7 +4964,7 @@ var schemaInternal = objectType({
4964
4964
  version: literalType("5"),
4965
4965
  dialect,
4966
4966
  tables: recordType(stringType(), table),
4967
- views: recordType(stringType(), view),
4967
+ views: recordType(stringType(), view).default({}),
4968
4968
  _meta: objectType({
4969
4969
  tables: recordType(stringType(), stringType()),
4970
4970
  columns: recordType(stringType(), stringType())
@@ -5544,7 +5544,7 @@ var schemaInternalV42 = objectType({
5544
5544
  version: literalType("4"),
5545
5545
  dialect: dialect2,
5546
5546
  tables: recordType(stringType(), table3),
5547
- views: recordType(stringType(), view3),
5547
+ views: recordType(stringType(), view3).default({}),
5548
5548
  enums: objectType({})
5549
5549
  }).strict();
5550
5550
  var schemaInternalV52 = objectType({
@@ -5573,7 +5573,7 @@ var schemaInternal2 = objectType({
5573
5573
  version: latestVersion,
5574
5574
  dialect: dialect2,
5575
5575
  tables: recordType(stringType(), table3),
5576
- views: recordType(stringType(), view3),
5576
+ views: recordType(stringType(), view3).default({}),
5577
5577
  enums: objectType({}),
5578
5578
  _meta: objectType({
5579
5579
  tables: recordType(stringType(), stringType()),