drizzle-kit 0.25.0-1f15bfd → 0.25.0-20acc2f

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-kit",
3
- "version": "0.25.0-1f15bfd",
3
+ "version": "0.25.0-20acc2f",
4
4
  "homepage": "https://orm.drizzle.team",
5
5
  "keywords": [
6
6
  "drizzle",
package/utils.js CHANGED
@@ -4903,6 +4903,10 @@ var uniqueConstraint = objectType({
4903
4903
  name: stringType(),
4904
4904
  columns: stringType().array()
4905
4905
  }).strict();
4906
+ var checkConstraint = objectType({
4907
+ name: stringType(),
4908
+ value: stringType()
4909
+ }).strict();
4906
4910
  var tableV4 = objectType({
4907
4911
  name: stringType(),
4908
4912
  schema: stringType().optional(),
@@ -4916,7 +4920,8 @@ var table = objectType({
4916
4920
  indexes: recordType(stringType(), index),
4917
4921
  foreignKeys: recordType(stringType(), fk),
4918
4922
  compositePrimaryKeys: recordType(stringType(), compositePK),
4919
- uniqueConstraints: recordType(stringType(), uniqueConstraint).default({})
4923
+ uniqueConstraints: recordType(stringType(), uniqueConstraint).default({}),
4924
+ checkConstraint: recordType(stringType(), checkConstraint).default({})
4920
4925
  }).strict();
4921
4926
  var kitInternals = objectType({
4922
4927
  tables: recordType(
@@ -4993,7 +4998,8 @@ var tableSquashed = objectType({
4993
4998
  indexes: recordType(stringType(), stringType()),
4994
4999
  foreignKeys: recordType(stringType(), stringType()),
4995
5000
  compositePrimaryKeys: recordType(stringType(), stringType()),
4996
- uniqueConstraints: recordType(stringType(), stringType()).default({})
5001
+ uniqueConstraints: recordType(stringType(), stringType()).default({}),
5002
+ checkConstraints: recordType(stringType(), stringType()).default({})
4997
5003
  }).strict();
4998
5004
  var schemaSquashed = objectType({
4999
5005
  version: literalType("5"),
@@ -5181,6 +5187,10 @@ var column2 = objectType({
5181
5187
  }).optional(),
5182
5188
  identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
5183
5189
  }).strict();
5190
+ var checkConstraint2 = objectType({
5191
+ name: stringType(),
5192
+ value: stringType()
5193
+ }).strict();
5184
5194
  var columnSquashed = objectType({
5185
5195
  name: stringType(),
5186
5196
  type: stringType(),
@@ -5253,7 +5263,8 @@ var table2 = objectType({
5253
5263
  indexes: recordType(stringType(), index2),
5254
5264
  foreignKeys: recordType(stringType(), fk2),
5255
5265
  compositePrimaryKeys: recordType(stringType(), compositePK2),
5256
- uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
5266
+ uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
5267
+ checkConstraints: recordType(stringType(), checkConstraint2).default({})
5257
5268
  }).strict();
5258
5269
  var schemaHash2 = objectType({
5259
5270
  id: stringType(),
@@ -5361,7 +5372,8 @@ var tableSquashed2 = objectType({
5361
5372
  indexes: recordType(stringType(), stringType()),
5362
5373
  foreignKeys: recordType(stringType(), stringType()),
5363
5374
  compositePrimaryKeys: recordType(stringType(), stringType()),
5364
- uniqueConstraints: recordType(stringType(), stringType())
5375
+ uniqueConstraints: recordType(stringType(), stringType()),
5376
+ checkConstraints: recordType(stringType(), stringType())
5365
5377
  }).strict();
5366
5378
  var tableSquashedV42 = objectType({
5367
5379
  name: stringType(),
@@ -5461,13 +5473,18 @@ var uniqueConstraint3 = objectType({
5461
5473
  name: stringType(),
5462
5474
  columns: stringType().array()
5463
5475
  }).strict();
5476
+ var checkConstraint3 = objectType({
5477
+ name: stringType(),
5478
+ value: stringType()
5479
+ }).strict();
5464
5480
  var table3 = objectType({
5465
5481
  name: stringType(),
5466
5482
  columns: recordType(stringType(), column3),
5467
5483
  indexes: recordType(stringType(), index3),
5468
5484
  foreignKeys: recordType(stringType(), fk3),
5469
5485
  compositePrimaryKeys: recordType(stringType(), compositePK3),
5470
- uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({})
5486
+ uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({}),
5487
+ checkConstraints: recordType(stringType(), checkConstraint3).default({})
5471
5488
  }).strict();
5472
5489
  var dialect2 = enumType(["sqlite"]);
5473
5490
  var schemaHash3 = objectType({
@@ -5529,7 +5546,8 @@ var tableSquashed3 = objectType({
5529
5546
  indexes: recordType(stringType(), stringType()),
5530
5547
  foreignKeys: recordType(stringType(), stringType()),
5531
5548
  compositePrimaryKeys: recordType(stringType(), stringType()),
5532
- uniqueConstraints: recordType(stringType(), stringType()).default({})
5549
+ uniqueConstraints: recordType(stringType(), stringType()).default({}),
5550
+ checkConstraints: recordType(stringType(), stringType()).default({})
5533
5551
  }).strict();
5534
5552
  var schemaSquashed2 = objectType({
5535
5553
  version: latestVersion,
package/utils.mjs CHANGED
@@ -4881,6 +4881,10 @@ var uniqueConstraint = objectType({
4881
4881
  name: stringType(),
4882
4882
  columns: stringType().array()
4883
4883
  }).strict();
4884
+ var checkConstraint = objectType({
4885
+ name: stringType(),
4886
+ value: stringType()
4887
+ }).strict();
4884
4888
  var tableV4 = objectType({
4885
4889
  name: stringType(),
4886
4890
  schema: stringType().optional(),
@@ -4894,7 +4898,8 @@ var table = objectType({
4894
4898
  indexes: recordType(stringType(), index),
4895
4899
  foreignKeys: recordType(stringType(), fk),
4896
4900
  compositePrimaryKeys: recordType(stringType(), compositePK),
4897
- uniqueConstraints: recordType(stringType(), uniqueConstraint).default({})
4901
+ uniqueConstraints: recordType(stringType(), uniqueConstraint).default({}),
4902
+ checkConstraint: recordType(stringType(), checkConstraint).default({})
4898
4903
  }).strict();
4899
4904
  var kitInternals = objectType({
4900
4905
  tables: recordType(
@@ -4971,7 +4976,8 @@ var tableSquashed = objectType({
4971
4976
  indexes: recordType(stringType(), stringType()),
4972
4977
  foreignKeys: recordType(stringType(), stringType()),
4973
4978
  compositePrimaryKeys: recordType(stringType(), stringType()),
4974
- uniqueConstraints: recordType(stringType(), stringType()).default({})
4979
+ uniqueConstraints: recordType(stringType(), stringType()).default({}),
4980
+ checkConstraints: recordType(stringType(), stringType()).default({})
4975
4981
  }).strict();
4976
4982
  var schemaSquashed = objectType({
4977
4983
  version: literalType("5"),
@@ -5159,6 +5165,10 @@ var column2 = objectType({
5159
5165
  }).optional(),
5160
5166
  identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
5161
5167
  }).strict();
5168
+ var checkConstraint2 = objectType({
5169
+ name: stringType(),
5170
+ value: stringType()
5171
+ }).strict();
5162
5172
  var columnSquashed = objectType({
5163
5173
  name: stringType(),
5164
5174
  type: stringType(),
@@ -5231,7 +5241,8 @@ var table2 = objectType({
5231
5241
  indexes: recordType(stringType(), index2),
5232
5242
  foreignKeys: recordType(stringType(), fk2),
5233
5243
  compositePrimaryKeys: recordType(stringType(), compositePK2),
5234
- uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
5244
+ uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
5245
+ checkConstraints: recordType(stringType(), checkConstraint2).default({})
5235
5246
  }).strict();
5236
5247
  var schemaHash2 = objectType({
5237
5248
  id: stringType(),
@@ -5339,7 +5350,8 @@ var tableSquashed2 = objectType({
5339
5350
  indexes: recordType(stringType(), stringType()),
5340
5351
  foreignKeys: recordType(stringType(), stringType()),
5341
5352
  compositePrimaryKeys: recordType(stringType(), stringType()),
5342
- uniqueConstraints: recordType(stringType(), stringType())
5353
+ uniqueConstraints: recordType(stringType(), stringType()),
5354
+ checkConstraints: recordType(stringType(), stringType())
5343
5355
  }).strict();
5344
5356
  var tableSquashedV42 = objectType({
5345
5357
  name: stringType(),
@@ -5439,13 +5451,18 @@ var uniqueConstraint3 = objectType({
5439
5451
  name: stringType(),
5440
5452
  columns: stringType().array()
5441
5453
  }).strict();
5454
+ var checkConstraint3 = objectType({
5455
+ name: stringType(),
5456
+ value: stringType()
5457
+ }).strict();
5442
5458
  var table3 = objectType({
5443
5459
  name: stringType(),
5444
5460
  columns: recordType(stringType(), column3),
5445
5461
  indexes: recordType(stringType(), index3),
5446
5462
  foreignKeys: recordType(stringType(), fk3),
5447
5463
  compositePrimaryKeys: recordType(stringType(), compositePK3),
5448
- uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({})
5464
+ uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({}),
5465
+ checkConstraints: recordType(stringType(), checkConstraint3).default({})
5449
5466
  }).strict();
5450
5467
  var dialect2 = enumType(["sqlite"]);
5451
5468
  var schemaHash3 = objectType({
@@ -5507,7 +5524,8 @@ var tableSquashed3 = objectType({
5507
5524
  indexes: recordType(stringType(), stringType()),
5508
5525
  foreignKeys: recordType(stringType(), stringType()),
5509
5526
  compositePrimaryKeys: recordType(stringType(), stringType()),
5510
- uniqueConstraints: recordType(stringType(), stringType()).default({})
5527
+ uniqueConstraints: recordType(stringType(), stringType()).default({}),
5528
+ checkConstraints: recordType(stringType(), stringType()).default({})
5511
5529
  }).strict();
5512
5530
  var schemaSquashed2 = objectType({
5513
5531
  version: latestVersion,