drizzle-kit 0.24.2-ff1dcd9 → 0.25.0-178591
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 +82 -0
- package/api.d.ts +82 -0
- package/api.js +88561 -14064
- package/api.mjs +88558 -14064
- package/bin.cjs +2948 -4419
- package/package.json +2 -1
- package/utils.js +24 -6
- package/utils.mjs +24 -6
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "drizzle-kit",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.25.0-178591",
|
4
4
|
"homepage": "https://orm.drizzle.team",
|
5
5
|
"keywords": [
|
6
6
|
"drizzle",
|
@@ -74,6 +74,7 @@
|
|
74
74
|
"@vercel/postgres": "^0.8.0",
|
75
75
|
"ava": "^5.1.0",
|
76
76
|
"better-sqlite3": "^9.4.3",
|
77
|
+
"bun-types": "^0.6.6",
|
77
78
|
"camelcase": "^7.0.1",
|
78
79
|
"chalk": "^5.2.0",
|
79
80
|
"commander": "^12.1.0",
|
package/utils.js
CHANGED
@@ -4901,6 +4901,10 @@ var uniqueConstraint = objectType({
|
|
4901
4901
|
name: stringType(),
|
4902
4902
|
columns: stringType().array()
|
4903
4903
|
}).strict();
|
4904
|
+
var checkConstraint = objectType({
|
4905
|
+
name: stringType(),
|
4906
|
+
value: stringType()
|
4907
|
+
}).strict();
|
4904
4908
|
var tableV4 = objectType({
|
4905
4909
|
name: stringType(),
|
4906
4910
|
schema: stringType().optional(),
|
@@ -4914,7 +4918,8 @@ var table = objectType({
|
|
4914
4918
|
indexes: recordType(stringType(), index),
|
4915
4919
|
foreignKeys: recordType(stringType(), fk),
|
4916
4920
|
compositePrimaryKeys: recordType(stringType(), compositePK),
|
4917
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint).default({})
|
4921
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint).default({}),
|
4922
|
+
checkConstraint: recordType(stringType(), checkConstraint).default({})
|
4918
4923
|
}).strict();
|
4919
4924
|
var kitInternals = objectType({
|
4920
4925
|
tables: recordType(
|
@@ -4991,7 +4996,8 @@ var tableSquashed = objectType({
|
|
4991
4996
|
indexes: recordType(stringType(), stringType()),
|
4992
4997
|
foreignKeys: recordType(stringType(), stringType()),
|
4993
4998
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
4994
|
-
uniqueConstraints: recordType(stringType(), stringType()).default({})
|
4999
|
+
uniqueConstraints: recordType(stringType(), stringType()).default({}),
|
5000
|
+
checkConstraints: recordType(stringType(), stringType()).default({})
|
4995
5001
|
}).strict();
|
4996
5002
|
var schemaSquashed = objectType({
|
4997
5003
|
version: literalType("5"),
|
@@ -5179,6 +5185,10 @@ var column2 = objectType({
|
|
5179
5185
|
}).optional(),
|
5180
5186
|
identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
|
5181
5187
|
}).strict();
|
5188
|
+
var checkConstraint2 = objectType({
|
5189
|
+
name: stringType(),
|
5190
|
+
value: stringType()
|
5191
|
+
}).strict();
|
5182
5192
|
var columnSquashed = objectType({
|
5183
5193
|
name: stringType(),
|
5184
5194
|
type: stringType(),
|
@@ -5251,7 +5261,8 @@ var table2 = objectType({
|
|
5251
5261
|
indexes: recordType(stringType(), index2),
|
5252
5262
|
foreignKeys: recordType(stringType(), fk2),
|
5253
5263
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5254
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5264
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
|
5265
|
+
checkConstraints: recordType(stringType(), checkConstraint2).default({})
|
5255
5266
|
}).strict();
|
5256
5267
|
var schemaHash2 = objectType({
|
5257
5268
|
id: stringType(),
|
@@ -5359,7 +5370,8 @@ var tableSquashed2 = objectType({
|
|
5359
5370
|
indexes: recordType(stringType(), stringType()),
|
5360
5371
|
foreignKeys: recordType(stringType(), stringType()),
|
5361
5372
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
5362
|
-
uniqueConstraints: recordType(stringType(), stringType())
|
5373
|
+
uniqueConstraints: recordType(stringType(), stringType()),
|
5374
|
+
checkConstraints: recordType(stringType(), stringType())
|
5363
5375
|
}).strict();
|
5364
5376
|
var tableSquashedV42 = objectType({
|
5365
5377
|
name: stringType(),
|
@@ -5459,13 +5471,18 @@ var uniqueConstraint3 = objectType({
|
|
5459
5471
|
name: stringType(),
|
5460
5472
|
columns: stringType().array()
|
5461
5473
|
}).strict();
|
5474
|
+
var checkConstraint3 = objectType({
|
5475
|
+
name: stringType(),
|
5476
|
+
value: stringType()
|
5477
|
+
}).strict();
|
5462
5478
|
var table3 = objectType({
|
5463
5479
|
name: stringType(),
|
5464
5480
|
columns: recordType(stringType(), column3),
|
5465
5481
|
indexes: recordType(stringType(), index3),
|
5466
5482
|
foreignKeys: recordType(stringType(), fk3),
|
5467
5483
|
compositePrimaryKeys: recordType(stringType(), compositePK3),
|
5468
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({})
|
5484
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({}),
|
5485
|
+
checkConstraints: recordType(stringType(), checkConstraint3).default({})
|
5469
5486
|
}).strict();
|
5470
5487
|
var dialect2 = enumType(["sqlite"]);
|
5471
5488
|
var schemaHash3 = objectType({
|
@@ -5527,7 +5544,8 @@ var tableSquashed3 = objectType({
|
|
5527
5544
|
indexes: recordType(stringType(), stringType()),
|
5528
5545
|
foreignKeys: recordType(stringType(), stringType()),
|
5529
5546
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
5530
|
-
uniqueConstraints: recordType(stringType(), stringType()).default({})
|
5547
|
+
uniqueConstraints: recordType(stringType(), stringType()).default({}),
|
5548
|
+
checkConstraints: recordType(stringType(), stringType()).default({})
|
5531
5549
|
}).strict();
|
5532
5550
|
var schemaSquashed2 = objectType({
|
5533
5551
|
version: latestVersion,
|
package/utils.mjs
CHANGED
@@ -4880,6 +4880,10 @@ var uniqueConstraint = objectType({
|
|
4880
4880
|
name: stringType(),
|
4881
4881
|
columns: stringType().array()
|
4882
4882
|
}).strict();
|
4883
|
+
var checkConstraint = objectType({
|
4884
|
+
name: stringType(),
|
4885
|
+
value: stringType()
|
4886
|
+
}).strict();
|
4883
4887
|
var tableV4 = objectType({
|
4884
4888
|
name: stringType(),
|
4885
4889
|
schema: stringType().optional(),
|
@@ -4893,7 +4897,8 @@ var table = objectType({
|
|
4893
4897
|
indexes: recordType(stringType(), index),
|
4894
4898
|
foreignKeys: recordType(stringType(), fk),
|
4895
4899
|
compositePrimaryKeys: recordType(stringType(), compositePK),
|
4896
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint).default({})
|
4900
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint).default({}),
|
4901
|
+
checkConstraint: recordType(stringType(), checkConstraint).default({})
|
4897
4902
|
}).strict();
|
4898
4903
|
var kitInternals = objectType({
|
4899
4904
|
tables: recordType(
|
@@ -4970,7 +4975,8 @@ var tableSquashed = objectType({
|
|
4970
4975
|
indexes: recordType(stringType(), stringType()),
|
4971
4976
|
foreignKeys: recordType(stringType(), stringType()),
|
4972
4977
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
4973
|
-
uniqueConstraints: recordType(stringType(), stringType()).default({})
|
4978
|
+
uniqueConstraints: recordType(stringType(), stringType()).default({}),
|
4979
|
+
checkConstraints: recordType(stringType(), stringType()).default({})
|
4974
4980
|
}).strict();
|
4975
4981
|
var schemaSquashed = objectType({
|
4976
4982
|
version: literalType("5"),
|
@@ -5158,6 +5164,10 @@ var column2 = objectType({
|
|
5158
5164
|
}).optional(),
|
5159
5165
|
identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
|
5160
5166
|
}).strict();
|
5167
|
+
var checkConstraint2 = objectType({
|
5168
|
+
name: stringType(),
|
5169
|
+
value: stringType()
|
5170
|
+
}).strict();
|
5161
5171
|
var columnSquashed = objectType({
|
5162
5172
|
name: stringType(),
|
5163
5173
|
type: stringType(),
|
@@ -5230,7 +5240,8 @@ var table2 = objectType({
|
|
5230
5240
|
indexes: recordType(stringType(), index2),
|
5231
5241
|
foreignKeys: recordType(stringType(), fk2),
|
5232
5242
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5233
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5243
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({}),
|
5244
|
+
checkConstraints: recordType(stringType(), checkConstraint2).default({})
|
5234
5245
|
}).strict();
|
5235
5246
|
var schemaHash2 = objectType({
|
5236
5247
|
id: stringType(),
|
@@ -5338,7 +5349,8 @@ var tableSquashed2 = objectType({
|
|
5338
5349
|
indexes: recordType(stringType(), stringType()),
|
5339
5350
|
foreignKeys: recordType(stringType(), stringType()),
|
5340
5351
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
5341
|
-
uniqueConstraints: recordType(stringType(), stringType())
|
5352
|
+
uniqueConstraints: recordType(stringType(), stringType()),
|
5353
|
+
checkConstraints: recordType(stringType(), stringType())
|
5342
5354
|
}).strict();
|
5343
5355
|
var tableSquashedV42 = objectType({
|
5344
5356
|
name: stringType(),
|
@@ -5438,13 +5450,18 @@ var uniqueConstraint3 = objectType({
|
|
5438
5450
|
name: stringType(),
|
5439
5451
|
columns: stringType().array()
|
5440
5452
|
}).strict();
|
5453
|
+
var checkConstraint3 = objectType({
|
5454
|
+
name: stringType(),
|
5455
|
+
value: stringType()
|
5456
|
+
}).strict();
|
5441
5457
|
var table3 = objectType({
|
5442
5458
|
name: stringType(),
|
5443
5459
|
columns: recordType(stringType(), column3),
|
5444
5460
|
indexes: recordType(stringType(), index3),
|
5445
5461
|
foreignKeys: recordType(stringType(), fk3),
|
5446
5462
|
compositePrimaryKeys: recordType(stringType(), compositePK3),
|
5447
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({})
|
5463
|
+
uniqueConstraints: recordType(stringType(), uniqueConstraint3).default({}),
|
5464
|
+
checkConstraints: recordType(stringType(), checkConstraint3).default({})
|
5448
5465
|
}).strict();
|
5449
5466
|
var dialect2 = enumType(["sqlite"]);
|
5450
5467
|
var schemaHash3 = objectType({
|
@@ -5506,7 +5523,8 @@ var tableSquashed3 = objectType({
|
|
5506
5523
|
indexes: recordType(stringType(), stringType()),
|
5507
5524
|
foreignKeys: recordType(stringType(), stringType()),
|
5508
5525
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
5509
|
-
uniqueConstraints: recordType(stringType(), stringType()).default({})
|
5526
|
+
uniqueConstraints: recordType(stringType(), stringType()).default({}),
|
5527
|
+
checkConstraints: recordType(stringType(), stringType()).default({})
|
5510
5528
|
}).strict();
|
5511
5529
|
var schemaSquashed2 = objectType({
|
5512
5530
|
version: latestVersion,
|