drizzle-kit 0.22.0-12a1bf8 → 0.22.0-25da1e6

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/utils-studio.js CHANGED
@@ -4848,7 +4848,7 @@ var init_lib = __esm({
4848
4848
  });
4849
4849
 
4850
4850
  // src/serializer/mysqlSchema.ts
4851
- var index, fk, column, tableV3, compositePK, uniqueConstraint, tableV4, table, kitInternals, dialect, schemaHash, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema, tableSquashedV4, tableSquashed, schemaSquashed, schemaSquashedV4, mysqlSchema, mysqlSchemaV5, backwardCompatibleMysqlSchema, dryMySql;
4851
+ var index, fk, column, tableV3, compositePK, uniqueConstraint, tableV4, table, kitInternals, dialect, schemaHash, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema, tableSquashedV4, tableSquashed, schemaSquashed, schemaSquashedV4, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql;
4852
4852
  var init_mysqlSchema = __esm({
4853
4853
  "src/serializer/mysqlSchema.ts"() {
4854
4854
  "use strict";
@@ -4918,7 +4918,16 @@ var init_mysqlSchema = __esm({
4918
4918
  objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
4919
4919
  )
4920
4920
  }).optional()
4921
- )
4921
+ ).optional(),
4922
+ indexes: recordType(
4923
+ stringType(),
4924
+ objectType({
4925
+ columns: recordType(
4926
+ stringType(),
4927
+ objectType({ isExpression: booleanType().optional() }).optional()
4928
+ )
4929
+ }).optional()
4930
+ ).optional()
4922
4931
  }).optional();
4923
4932
  dialect = literalType("mysql");
4924
4933
  schemaHash = objectType({
@@ -4990,6 +4999,7 @@ var init_mysqlSchema = __esm({
4990
4999
  }).strict();
4991
5000
  mysqlSchema = schema;
4992
5001
  mysqlSchemaV5 = schemaV5;
5002
+ mysqlSchemaSquashed = schemaSquashed;
4993
5003
  backwardCompatibleMysqlSchema = unionType([mysqlSchemaV5, schema]);
4994
5004
  dryMySql = mysqlSchema.parse({
4995
5005
  version: "5",
@@ -5337,7 +5347,7 @@ var init_pgSchema = __esm({
5337
5347
  });
5338
5348
 
5339
5349
  // src/serializer/sqliteSchema.ts
5340
- var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, drySQLite, sqliteSchemaV5, backwardCompatibleSqliteSchema;
5350
+ var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals3, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
5341
5351
  var init_sqliteSchema = __esm({
5342
5352
  "src/serializer/sqliteSchema.ts"() {
5343
5353
  "use strict";
@@ -5415,6 +5425,17 @@ var init_sqliteSchema = __esm({
5415
5425
  columns: recordType(stringType(), stringType())
5416
5426
  })
5417
5427
  }).strict();
5428
+ kitInternals3 = objectType({
5429
+ indexes: recordType(
5430
+ stringType(),
5431
+ objectType({
5432
+ columns: recordType(
5433
+ stringType(),
5434
+ objectType({ isExpression: booleanType().optional() }).optional()
5435
+ )
5436
+ }).optional()
5437
+ ).optional()
5438
+ }).optional();
5418
5439
  latestVersion = literalType("6");
5419
5440
  schemaInternal2 = objectType({
5420
5441
  version: latestVersion,
@@ -5424,7 +5445,8 @@ var init_sqliteSchema = __esm({
5424
5445
  _meta: objectType({
5425
5446
  tables: recordType(stringType(), stringType()),
5426
5447
  columns: recordType(stringType(), stringType())
5427
- })
5448
+ }),
5449
+ internal: kitInternals3
5428
5450
  }).strict();
5429
5451
  schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
5430
5452
  schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
@@ -5457,6 +5479,8 @@ var init_sqliteSchema = __esm({
5457
5479
  }
5458
5480
  });
5459
5481
  sqliteSchemaV5 = schemaV52;
5482
+ sqliteSchema = schema2;
5483
+ SQLiteSchemaSquashed = schemaSquashed2;
5460
5484
  backwardCompatibleSqliteSchema = unionType([sqliteSchemaV5, schema2]);
5461
5485
  }
5462
5486
  });
@@ -5530,10 +5554,100 @@ var init_serializer = __esm({
5530
5554
  }
5531
5555
  });
5532
5556
 
5557
+ // src/schemaValidator.ts
5558
+ var dialect3, commonSquashedSchema, commonSchema;
5559
+ var init_schemaValidator = __esm({
5560
+ "src/schemaValidator.ts"() {
5561
+ "use strict";
5562
+ init_lib();
5563
+ init_mysqlSchema();
5564
+ init_pgSchema();
5565
+ init_sqliteSchema();
5566
+ dialect3 = enumType(["postgresql", "mysql", "sqlite"]);
5567
+ commonSquashedSchema = unionType([
5568
+ pgSchemaSquashed,
5569
+ mysqlSchemaSquashed,
5570
+ SQLiteSchemaSquashed
5571
+ ]);
5572
+ commonSchema = unionType([
5573
+ pgSchema2,
5574
+ mysqlSchema,
5575
+ sqliteSchema
5576
+ ]);
5577
+ }
5578
+ });
5579
+
5580
+ // src/cli/validations/common.ts
5581
+ var sqliteDriversLiterals, sqliteDriver, postgresDriver, mysqlDriver, driver, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema;
5582
+ var init_common = __esm({
5583
+ "src/cli/validations/common.ts"() {
5584
+ "use strict";
5585
+ init_outputs();
5586
+ init_lib();
5587
+ init_schemaValidator();
5588
+ sqliteDriversLiterals = [
5589
+ literalType("turso"),
5590
+ literalType("d1-http"),
5591
+ literalType("expo")
5592
+ ];
5593
+ sqliteDriver = unionType(sqliteDriversLiterals);
5594
+ postgresDriver = literalType("aws-data-api");
5595
+ mysqlDriver = literalType("mysql2");
5596
+ driver = unionType([sqliteDriver, postgresDriver, mysqlDriver]);
5597
+ configCommonSchema = objectType({
5598
+ dialect: dialect3,
5599
+ schema: unionType([stringType(), stringType().array()]).optional(),
5600
+ out: stringType().optional(),
5601
+ breakpoints: booleanType().optional().default(true),
5602
+ driver: driver.optional(),
5603
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5604
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"])
5605
+ });
5606
+ casing = unionType([literalType("camel"), literalType("preserve")]).default(
5607
+ "preserve"
5608
+ );
5609
+ introspectParams = objectType({
5610
+ schema: unionType([stringType(), stringType().array()]).optional(),
5611
+ out: stringType().optional().default("./drizzle"),
5612
+ breakpoints: booleanType().default(true),
5613
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5614
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
5615
+ introspect: objectType({
5616
+ casing
5617
+ }).default({ casing: "camel" })
5618
+ });
5619
+ configIntrospectCliSchema = objectType({
5620
+ schema: unionType([stringType(), stringType().array()]).optional(),
5621
+ out: stringType().optional().default("./drizzle"),
5622
+ breakpoints: booleanType().default(true),
5623
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5624
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
5625
+ introspectCasing: unionType([literalType("camel"), literalType("preserve")]).default(
5626
+ "camel"
5627
+ )
5628
+ });
5629
+ configGenerateSchema = objectType({
5630
+ schema: unionType([stringType(), stringType().array()]),
5631
+ out: stringType().optional().default("./drizzle"),
5632
+ breakpoints: booleanType().default(true)
5633
+ });
5634
+ configPushSchema = objectType({
5635
+ dialect: dialect3,
5636
+ schema: unionType([stringType(), stringType().array()]),
5637
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5638
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
5639
+ verbose: booleanType().default(false),
5640
+ strict: booleanType().default(false),
5641
+ out: stringType().optional()
5642
+ });
5643
+ }
5644
+ });
5645
+
5533
5646
  // src/cli/validations/outputs.ts
5534
5647
  var init_outputs = __esm({
5535
5648
  "src/cli/validations/outputs.ts"() {
5536
5649
  "use strict";
5650
+ init_common();
5537
5651
  }
5538
5652
  });
5539
5653
 
@@ -5579,7 +5693,7 @@ function mapSqlToSqliteType(sqlType) {
5579
5693
  return "numeric";
5580
5694
  }
5581
5695
  }
5582
- var import_drizzle_orm, import_sqlite_core2, dialect3, fromDatabase;
5696
+ var import_drizzle_orm, import_sqlite_core2, dialect4, fromDatabase;
5583
5697
  var init_sqliteSerializer = __esm({
5584
5698
  "src/serializer/sqliteSerializer.ts"() {
5585
5699
  "use strict";
@@ -5587,7 +5701,7 @@ var init_sqliteSerializer = __esm({
5587
5701
  import_sqlite_core2 = require("drizzle-orm/sqlite-core");
5588
5702
  init_serializer();
5589
5703
  init_outputs();
5590
- dialect3 = new import_sqlite_core2.SQLiteSyncDialect();
5704
+ dialect4 = new import_sqlite_core2.SQLiteSyncDialect();
5591
5705
  fromDatabase = async (db, tablesFilter = (table4) => true, progressCallback) => {
5592
5706
  const result = {};
5593
5707
  const columns = await db.query(
@@ -6019,7 +6133,7 @@ var init_vector = __esm({
6019
6133
  });
6020
6134
 
6021
6135
  // src/serializer/pgSerializer.ts
6022
- var import_pg_core2, import_pg_core3, import_drizzle_orm2, dialect4, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
6136
+ var import_pg_core2, import_pg_core3, import_drizzle_orm2, dialect5, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
6023
6137
  var init_pgSerializer = __esm({
6024
6138
  "src/serializer/pgSerializer.ts"() {
6025
6139
  "use strict";
@@ -6029,7 +6143,7 @@ var init_pgSerializer = __esm({
6029
6143
  init_serializer();
6030
6144
  init_outputs();
6031
6145
  init_vector();
6032
- dialect4 = new import_pg_core2.PgDialect();
6146
+ dialect5 = new import_pg_core2.PgDialect();
6033
6147
  trimChar = (str, char) => {
6034
6148
  let start = 0;
6035
6149
  let end = str.length;
package/utils-studio.mjs CHANGED
@@ -4849,7 +4849,7 @@ var init_lib = __esm({
4849
4849
  });
4850
4850
 
4851
4851
  // src/serializer/mysqlSchema.ts
4852
- var index, fk, column, tableV3, compositePK, uniqueConstraint, tableV4, table, kitInternals, dialect, schemaHash, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema, tableSquashedV4, tableSquashed, schemaSquashed, schemaSquashedV4, mysqlSchema, mysqlSchemaV5, backwardCompatibleMysqlSchema, dryMySql;
4852
+ var index, fk, column, tableV3, compositePK, uniqueConstraint, tableV4, table, kitInternals, dialect, schemaHash, schemaInternalV3, schemaInternalV4, schemaInternalV5, schemaInternal, schemaV3, schemaV4, schemaV5, schema, tableSquashedV4, tableSquashed, schemaSquashed, schemaSquashedV4, mysqlSchema, mysqlSchemaV5, mysqlSchemaSquashed, backwardCompatibleMysqlSchema, dryMySql;
4853
4853
  var init_mysqlSchema = __esm({
4854
4854
  "src/serializer/mysqlSchema.ts"() {
4855
4855
  "use strict";
@@ -4919,7 +4919,16 @@ var init_mysqlSchema = __esm({
4919
4919
  objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
4920
4920
  )
4921
4921
  }).optional()
4922
- )
4922
+ ).optional(),
4923
+ indexes: recordType(
4924
+ stringType(),
4925
+ objectType({
4926
+ columns: recordType(
4927
+ stringType(),
4928
+ objectType({ isExpression: booleanType().optional() }).optional()
4929
+ )
4930
+ }).optional()
4931
+ ).optional()
4923
4932
  }).optional();
4924
4933
  dialect = literalType("mysql");
4925
4934
  schemaHash = objectType({
@@ -4991,6 +5000,7 @@ var init_mysqlSchema = __esm({
4991
5000
  }).strict();
4992
5001
  mysqlSchema = schema;
4993
5002
  mysqlSchemaV5 = schemaV5;
5003
+ mysqlSchemaSquashed = schemaSquashed;
4994
5004
  backwardCompatibleMysqlSchema = unionType([mysqlSchemaV5, schema]);
4995
5005
  dryMySql = mysqlSchema.parse({
4996
5006
  version: "5",
@@ -5338,7 +5348,7 @@ var init_pgSchema = __esm({
5338
5348
  });
5339
5349
 
5340
5350
  // src/serializer/sqliteSchema.ts
5341
- var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, drySQLite, sqliteSchemaV5, backwardCompatibleSqliteSchema;
5351
+ var index3, fk3, compositePK3, column3, tableV33, uniqueConstraint3, table3, dialect2, schemaHash3, schemaInternalV32, schemaInternalV42, schemaInternalV52, kitInternals3, latestVersion, schemaInternal2, schemaV32, schemaV42, schemaV52, schema2, tableSquashed3, schemaSquashed2, drySQLite, sqliteSchemaV5, sqliteSchema, SQLiteSchemaSquashed, backwardCompatibleSqliteSchema;
5342
5352
  var init_sqliteSchema = __esm({
5343
5353
  "src/serializer/sqliteSchema.ts"() {
5344
5354
  "use strict";
@@ -5416,6 +5426,17 @@ var init_sqliteSchema = __esm({
5416
5426
  columns: recordType(stringType(), stringType())
5417
5427
  })
5418
5428
  }).strict();
5429
+ kitInternals3 = objectType({
5430
+ indexes: recordType(
5431
+ stringType(),
5432
+ objectType({
5433
+ columns: recordType(
5434
+ stringType(),
5435
+ objectType({ isExpression: booleanType().optional() }).optional()
5436
+ )
5437
+ }).optional()
5438
+ ).optional()
5439
+ }).optional();
5419
5440
  latestVersion = literalType("6");
5420
5441
  schemaInternal2 = objectType({
5421
5442
  version: latestVersion,
@@ -5425,7 +5446,8 @@ var init_sqliteSchema = __esm({
5425
5446
  _meta: objectType({
5426
5447
  tables: recordType(stringType(), stringType()),
5427
5448
  columns: recordType(stringType(), stringType())
5428
- })
5449
+ }),
5450
+ internal: kitInternals3
5429
5451
  }).strict();
5430
5452
  schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
5431
5453
  schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
@@ -5458,6 +5480,8 @@ var init_sqliteSchema = __esm({
5458
5480
  }
5459
5481
  });
5460
5482
  sqliteSchemaV5 = schemaV52;
5483
+ sqliteSchema = schema2;
5484
+ SQLiteSchemaSquashed = schemaSquashed2;
5461
5485
  backwardCompatibleSqliteSchema = unionType([sqliteSchemaV5, schema2]);
5462
5486
  }
5463
5487
  });
@@ -5530,10 +5554,100 @@ var init_serializer = __esm({
5530
5554
  }
5531
5555
  });
5532
5556
 
5557
+ // src/schemaValidator.ts
5558
+ var dialect3, commonSquashedSchema, commonSchema;
5559
+ var init_schemaValidator = __esm({
5560
+ "src/schemaValidator.ts"() {
5561
+ "use strict";
5562
+ init_lib();
5563
+ init_mysqlSchema();
5564
+ init_pgSchema();
5565
+ init_sqliteSchema();
5566
+ dialect3 = enumType(["postgresql", "mysql", "sqlite"]);
5567
+ commonSquashedSchema = unionType([
5568
+ pgSchemaSquashed,
5569
+ mysqlSchemaSquashed,
5570
+ SQLiteSchemaSquashed
5571
+ ]);
5572
+ commonSchema = unionType([
5573
+ pgSchema2,
5574
+ mysqlSchema,
5575
+ sqliteSchema
5576
+ ]);
5577
+ }
5578
+ });
5579
+
5580
+ // src/cli/validations/common.ts
5581
+ var sqliteDriversLiterals, sqliteDriver, postgresDriver, mysqlDriver, driver, configCommonSchema, casing, introspectParams, configIntrospectCliSchema, configGenerateSchema, configPushSchema;
5582
+ var init_common = __esm({
5583
+ "src/cli/validations/common.ts"() {
5584
+ "use strict";
5585
+ init_outputs();
5586
+ init_lib();
5587
+ init_schemaValidator();
5588
+ sqliteDriversLiterals = [
5589
+ literalType("turso"),
5590
+ literalType("d1-http"),
5591
+ literalType("expo")
5592
+ ];
5593
+ sqliteDriver = unionType(sqliteDriversLiterals);
5594
+ postgresDriver = literalType("aws-data-api");
5595
+ mysqlDriver = literalType("mysql2");
5596
+ driver = unionType([sqliteDriver, postgresDriver, mysqlDriver]);
5597
+ configCommonSchema = objectType({
5598
+ dialect: dialect3,
5599
+ schema: unionType([stringType(), stringType().array()]).optional(),
5600
+ out: stringType().optional(),
5601
+ breakpoints: booleanType().optional().default(true),
5602
+ driver: driver.optional(),
5603
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5604
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"])
5605
+ });
5606
+ casing = unionType([literalType("camel"), literalType("preserve")]).default(
5607
+ "preserve"
5608
+ );
5609
+ introspectParams = objectType({
5610
+ schema: unionType([stringType(), stringType().array()]).optional(),
5611
+ out: stringType().optional().default("./drizzle"),
5612
+ breakpoints: booleanType().default(true),
5613
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5614
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
5615
+ introspect: objectType({
5616
+ casing
5617
+ }).default({ casing: "camel" })
5618
+ });
5619
+ configIntrospectCliSchema = objectType({
5620
+ schema: unionType([stringType(), stringType().array()]).optional(),
5621
+ out: stringType().optional().default("./drizzle"),
5622
+ breakpoints: booleanType().default(true),
5623
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5624
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
5625
+ introspectCasing: unionType([literalType("camel"), literalType("preserve")]).default(
5626
+ "camel"
5627
+ )
5628
+ });
5629
+ configGenerateSchema = objectType({
5630
+ schema: unionType([stringType(), stringType().array()]),
5631
+ out: stringType().optional().default("./drizzle"),
5632
+ breakpoints: booleanType().default(true)
5633
+ });
5634
+ configPushSchema = objectType({
5635
+ dialect: dialect3,
5636
+ schema: unionType([stringType(), stringType().array()]),
5637
+ tablesFilter: unionType([stringType(), stringType().array()]).optional(),
5638
+ schemaFilter: unionType([stringType(), stringType().array()]).default(["public"]),
5639
+ verbose: booleanType().default(false),
5640
+ strict: booleanType().default(false),
5641
+ out: stringType().optional()
5642
+ });
5643
+ }
5644
+ });
5645
+
5533
5646
  // src/cli/validations/outputs.ts
5534
5647
  var init_outputs = __esm({
5535
5648
  "src/cli/validations/outputs.ts"() {
5536
5649
  "use strict";
5650
+ init_common();
5537
5651
  }
5538
5652
  });
5539
5653
 
@@ -5586,13 +5700,13 @@ function mapSqlToSqliteType(sqlType) {
5586
5700
  return "numeric";
5587
5701
  }
5588
5702
  }
5589
- var dialect3, fromDatabase;
5703
+ var dialect4, fromDatabase;
5590
5704
  var init_sqliteSerializer = __esm({
5591
5705
  "src/serializer/sqliteSerializer.ts"() {
5592
5706
  "use strict";
5593
5707
  init_serializer();
5594
5708
  init_outputs();
5595
- dialect3 = new SQLiteSyncDialect();
5709
+ dialect4 = new SQLiteSyncDialect();
5596
5710
  fromDatabase = async (db, tablesFilter = (table4) => true, progressCallback) => {
5597
5711
  const result = {};
5598
5712
  const columns = await db.query(
@@ -6031,14 +6145,14 @@ import {
6031
6145
  } from "drizzle-orm/pg-core";
6032
6146
  import { getTableConfig as getTableConfig2 } from "drizzle-orm/pg-core";
6033
6147
  import { is as is2, SQL as SQL2, getTableName as getTableName2 } from "drizzle-orm";
6034
- var dialect4, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
6148
+ var dialect5, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
6035
6149
  var init_pgSerializer = __esm({
6036
6150
  "src/serializer/pgSerializer.ts"() {
6037
6151
  "use strict";
6038
6152
  init_serializer();
6039
6153
  init_outputs();
6040
6154
  init_vector();
6041
- dialect4 = new PgDialect();
6155
+ dialect5 = new PgDialect();
6042
6156
  trimChar = (str, char) => {
6043
6157
  let start = 0;
6044
6158
  let end = str.length;
package/utils.js CHANGED
@@ -4914,7 +4914,16 @@ var kitInternals = objectType({
4914
4914
  objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
4915
4915
  )
4916
4916
  }).optional()
4917
- )
4917
+ ).optional(),
4918
+ indexes: recordType(
4919
+ stringType(),
4920
+ objectType({
4921
+ columns: recordType(
4922
+ stringType(),
4923
+ objectType({ isExpression: booleanType().optional() }).optional()
4924
+ )
4925
+ }).optional()
4926
+ ).optional()
4918
4927
  }).optional();
4919
4928
  var dialect = literalType("mysql");
4920
4929
  var schemaHash = objectType({
@@ -5395,6 +5404,17 @@ var schemaInternalV52 = objectType({
5395
5404
  columns: recordType(stringType(), stringType())
5396
5405
  })
5397
5406
  }).strict();
5407
+ var kitInternals3 = objectType({
5408
+ indexes: recordType(
5409
+ stringType(),
5410
+ objectType({
5411
+ columns: recordType(
5412
+ stringType(),
5413
+ objectType({ isExpression: booleanType().optional() }).optional()
5414
+ )
5415
+ }).optional()
5416
+ ).optional()
5417
+ }).optional();
5398
5418
  var latestVersion = literalType("6");
5399
5419
  var schemaInternal2 = objectType({
5400
5420
  version: latestVersion,
@@ -5404,7 +5424,8 @@ var schemaInternal2 = objectType({
5404
5424
  _meta: objectType({
5405
5425
  tables: recordType(stringType(), stringType()),
5406
5426
  columns: recordType(stringType(), stringType())
5407
- })
5427
+ }),
5428
+ internal: kitInternals3
5408
5429
  }).strict();
5409
5430
  var schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
5410
5431
  var schemaV42 = schemaInternalV42.merge(schemaHash3).strict();
package/utils.mjs CHANGED
@@ -4904,7 +4904,16 @@ var kitInternals = objectType({
4904
4904
  objectType({ isDefaultAnExpression: booleanType().optional() }).optional()
4905
4905
  )
4906
4906
  }).optional()
4907
- )
4907
+ ).optional(),
4908
+ indexes: recordType(
4909
+ stringType(),
4910
+ objectType({
4911
+ columns: recordType(
4912
+ stringType(),
4913
+ objectType({ isExpression: booleanType().optional() }).optional()
4914
+ )
4915
+ }).optional()
4916
+ ).optional()
4908
4917
  }).optional();
4909
4918
  var dialect = literalType("mysql");
4910
4919
  var schemaHash = objectType({
@@ -5385,6 +5394,17 @@ var schemaInternalV52 = objectType({
5385
5394
  columns: recordType(stringType(), stringType())
5386
5395
  })
5387
5396
  }).strict();
5397
+ var kitInternals3 = objectType({
5398
+ indexes: recordType(
5399
+ stringType(),
5400
+ objectType({
5401
+ columns: recordType(
5402
+ stringType(),
5403
+ objectType({ isExpression: booleanType().optional() }).optional()
5404
+ )
5405
+ }).optional()
5406
+ ).optional()
5407
+ }).optional();
5388
5408
  var latestVersion = literalType("6");
5389
5409
  var schemaInternal2 = objectType({
5390
5410
  version: latestVersion,
@@ -5394,7 +5414,8 @@ var schemaInternal2 = objectType({
5394
5414
  _meta: objectType({
5395
5415
  tables: recordType(stringType(), stringType()),
5396
5416
  columns: recordType(stringType(), stringType())
5397
- })
5417
+ }),
5418
+ internal: kitInternals3
5398
5419
  }).strict();
5399
5420
  var schemaV32 = schemaInternalV32.merge(schemaHash3).strict();
5400
5421
  var schemaV42 = schemaInternalV42.merge(schemaHash3).strict();