drizzle-kit 0.22.7-fbc7b5c → 0.22.8
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +3741 -5535
- package/index.d.mts +0 -2
- package/index.d.ts +0 -2
- package/package.json +2 -2
- package/payload.d.mts +6 -269
- package/payload.d.ts +6 -269
- package/payload.js +1742 -2846
- package/payload.mjs +1744 -2847
- package/utils.js +8 -90
- package/utils.mjs +8 -90
package/utils.js
CHANGED
@@ -4874,11 +4874,7 @@ var column = objectType({
|
|
4874
4874
|
notNull: booleanType(),
|
4875
4875
|
autoincrement: booleanType().optional(),
|
4876
4876
|
default: anyType().optional(),
|
4877
|
-
onUpdate: anyType().optional()
|
4878
|
-
generated: objectType({
|
4879
|
-
type: enumType(["stored", "virtual"]),
|
4880
|
-
as: stringType()
|
4881
|
-
}).optional()
|
4877
|
+
onUpdate: anyType().optional()
|
4882
4878
|
}).strict();
|
4883
4879
|
var tableV3 = objectType({
|
4884
4880
|
name: stringType(),
|
@@ -5130,32 +5126,6 @@ var fk2 = objectType({
|
|
5130
5126
|
onUpdate: stringType().optional(),
|
5131
5127
|
onDelete: stringType().optional()
|
5132
5128
|
}).strict();
|
5133
|
-
var sequenceSchema = objectType({
|
5134
|
-
name: stringType(),
|
5135
|
-
increment: stringType().optional(),
|
5136
|
-
minValue: stringType().optional(),
|
5137
|
-
maxValue: stringType().optional(),
|
5138
|
-
startWith: stringType().optional(),
|
5139
|
-
cache: stringType().optional(),
|
5140
|
-
cycle: booleanType().optional(),
|
5141
|
-
schema: stringType()
|
5142
|
-
}).strict();
|
5143
|
-
var sequenceSquashed = objectType({
|
5144
|
-
name: stringType(),
|
5145
|
-
schema: stringType(),
|
5146
|
-
values: stringType()
|
5147
|
-
}).strict();
|
5148
|
-
var columnV7 = objectType({
|
5149
|
-
name: stringType(),
|
5150
|
-
type: stringType(),
|
5151
|
-
typeSchema: stringType().optional(),
|
5152
|
-
primaryKey: booleanType(),
|
5153
|
-
notNull: booleanType(),
|
5154
|
-
default: anyType().optional(),
|
5155
|
-
isUnique: anyType().optional(),
|
5156
|
-
uniqueName: stringType().optional(),
|
5157
|
-
nullsNotDistinct: booleanType().optional()
|
5158
|
-
}).strict();
|
5159
5129
|
var column2 = objectType({
|
5160
5130
|
name: stringType(),
|
5161
5131
|
type: stringType(),
|
@@ -5165,28 +5135,7 @@ var column2 = objectType({
|
|
5165
5135
|
default: anyType().optional(),
|
5166
5136
|
isUnique: anyType().optional(),
|
5167
5137
|
uniqueName: stringType().optional(),
|
5168
|
-
nullsNotDistinct: booleanType().optional()
|
5169
|
-
generated: objectType({
|
5170
|
-
type: literalType("stored"),
|
5171
|
-
as: stringType()
|
5172
|
-
}).optional(),
|
5173
|
-
identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
|
5174
|
-
}).strict();
|
5175
|
-
var columnSquashed = objectType({
|
5176
|
-
name: stringType(),
|
5177
|
-
type: stringType(),
|
5178
|
-
typeSchema: stringType().optional(),
|
5179
|
-
primaryKey: booleanType(),
|
5180
|
-
notNull: booleanType(),
|
5181
|
-
default: anyType().optional(),
|
5182
|
-
isUnique: anyType().optional(),
|
5183
|
-
uniqueName: stringType().optional(),
|
5184
|
-
nullsNotDistinct: booleanType().optional(),
|
5185
|
-
generated: objectType({
|
5186
|
-
type: literalType("stored"),
|
5187
|
-
as: stringType()
|
5188
|
-
}).optional(),
|
5189
|
-
identity: stringType().optional()
|
5138
|
+
nullsNotDistinct: booleanType().optional()
|
5190
5139
|
}).strict();
|
5191
5140
|
var tableV32 = objectType({
|
5192
5141
|
name: stringType(),
|
@@ -5210,15 +5159,6 @@ var tableV42 = objectType({
|
|
5210
5159
|
indexes: recordType(stringType(), indexV4),
|
5211
5160
|
foreignKeys: recordType(stringType(), fk2)
|
5212
5161
|
}).strict();
|
5213
|
-
var tableV5 = objectType({
|
5214
|
-
name: stringType(),
|
5215
|
-
schema: stringType(),
|
5216
|
-
columns: recordType(stringType(), column2),
|
5217
|
-
indexes: recordType(stringType(), indexV5),
|
5218
|
-
foreignKeys: recordType(stringType(), fk2),
|
5219
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5220
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5221
|
-
}).strict();
|
5222
5162
|
var tableV6 = objectType({
|
5223
5163
|
name: stringType(),
|
5224
5164
|
schema: stringType(),
|
@@ -5228,11 +5168,11 @@ var tableV6 = objectType({
|
|
5228
5168
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5229
5169
|
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5230
5170
|
}).strict();
|
5231
|
-
var
|
5171
|
+
var tableV5 = objectType({
|
5232
5172
|
name: stringType(),
|
5233
5173
|
schema: stringType(),
|
5234
|
-
columns: recordType(stringType(),
|
5235
|
-
indexes: recordType(stringType(),
|
5174
|
+
columns: recordType(stringType(), column2),
|
5175
|
+
indexes: recordType(stringType(), indexV5),
|
5236
5176
|
foreignKeys: recordType(stringType(), fk2),
|
5237
5177
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5238
5178
|
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
@@ -5316,27 +5256,12 @@ var pgSchemaExternal = objectType({
|
|
5316
5256
|
columns: recordType(stringType(), stringType())
|
5317
5257
|
})
|
5318
5258
|
}).strict();
|
5319
|
-
var pgSchemaInternalV7 = objectType({
|
5320
|
-
version: literalType("7"),
|
5321
|
-
dialect: literalType("postgresql"),
|
5322
|
-
tables: recordType(stringType(), tableV7),
|
5323
|
-
enums: recordType(stringType(), enumSchema),
|
5324
|
-
schemas: recordType(stringType(), stringType()),
|
5325
|
-
sequences: recordType(stringType(), sequenceSchema),
|
5326
|
-
_meta: objectType({
|
5327
|
-
schemas: recordType(stringType(), stringType()),
|
5328
|
-
tables: recordType(stringType(), stringType()),
|
5329
|
-
columns: recordType(stringType(), stringType())
|
5330
|
-
}),
|
5331
|
-
internal: kitInternals2
|
5332
|
-
}).strict();
|
5333
5259
|
var pgSchemaInternal = objectType({
|
5334
5260
|
version: literalType("7"),
|
5335
5261
|
dialect: literalType("postgresql"),
|
5336
5262
|
tables: recordType(stringType(), table2),
|
5337
5263
|
enums: recordType(stringType(), enumSchema),
|
5338
5264
|
schemas: recordType(stringType(), stringType()),
|
5339
|
-
sequences: recordType(stringType(), sequenceSchema).default({}),
|
5340
5265
|
_meta: objectType({
|
5341
5266
|
schemas: recordType(stringType(), stringType()),
|
5342
5267
|
tables: recordType(stringType(), stringType()),
|
@@ -5347,7 +5272,7 @@ var pgSchemaInternal = objectType({
|
|
5347
5272
|
var tableSquashed2 = objectType({
|
5348
5273
|
name: stringType(),
|
5349
5274
|
schema: stringType(),
|
5350
|
-
columns: recordType(stringType(),
|
5275
|
+
columns: recordType(stringType(), column2),
|
5351
5276
|
indexes: recordType(stringType(), stringType()),
|
5352
5277
|
foreignKeys: recordType(stringType(), stringType()),
|
5353
5278
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
@@ -5379,14 +5304,12 @@ var pgSchemaSquashed = objectType({
|
|
5379
5304
|
dialect: literalType("postgresql"),
|
5380
5305
|
tables: recordType(stringType(), tableSquashed2),
|
5381
5306
|
enums: recordType(stringType(), enumSchema),
|
5382
|
-
schemas: recordType(stringType(), stringType())
|
5383
|
-
sequences: recordType(stringType(), sequenceSquashed)
|
5307
|
+
schemas: recordType(stringType(), stringType())
|
5384
5308
|
}).strict();
|
5385
5309
|
var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5386
5310
|
var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
5387
5311
|
var pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
5388
5312
|
var pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
5389
|
-
var pgSchemaV7 = pgSchemaInternalV7.merge(schemaHash2);
|
5390
5313
|
var pgSchema = pgSchemaInternal.merge(schemaHash2);
|
5391
5314
|
var backwardCompatiblePgSchema = unionType([
|
5392
5315
|
pgSchemaV5,
|
@@ -5401,7 +5324,6 @@ var dryPg = pgSchema.parse({
|
|
5401
5324
|
tables: {},
|
5402
5325
|
enums: {},
|
5403
5326
|
schemas: {},
|
5404
|
-
sequences: {},
|
5405
5327
|
_meta: {
|
5406
5328
|
schemas: {},
|
5407
5329
|
tables: {},
|
@@ -5435,11 +5357,7 @@ var column3 = objectType({
|
|
5435
5357
|
primaryKey: booleanType(),
|
5436
5358
|
notNull: booleanType(),
|
5437
5359
|
autoincrement: booleanType().optional(),
|
5438
|
-
default: anyType().optional()
|
5439
|
-
generated: objectType({
|
5440
|
-
type: enumType(["stored", "virtual"]),
|
5441
|
-
as: stringType()
|
5442
|
-
}).optional()
|
5360
|
+
default: anyType().optional()
|
5443
5361
|
}).strict();
|
5444
5362
|
var tableV33 = objectType({
|
5445
5363
|
name: stringType(),
|
package/utils.mjs
CHANGED
@@ -4864,11 +4864,7 @@ var column = objectType({
|
|
4864
4864
|
notNull: booleanType(),
|
4865
4865
|
autoincrement: booleanType().optional(),
|
4866
4866
|
default: anyType().optional(),
|
4867
|
-
onUpdate: anyType().optional()
|
4868
|
-
generated: objectType({
|
4869
|
-
type: enumType(["stored", "virtual"]),
|
4870
|
-
as: stringType()
|
4871
|
-
}).optional()
|
4867
|
+
onUpdate: anyType().optional()
|
4872
4868
|
}).strict();
|
4873
4869
|
var tableV3 = objectType({
|
4874
4870
|
name: stringType(),
|
@@ -5120,32 +5116,6 @@ var fk2 = objectType({
|
|
5120
5116
|
onUpdate: stringType().optional(),
|
5121
5117
|
onDelete: stringType().optional()
|
5122
5118
|
}).strict();
|
5123
|
-
var sequenceSchema = objectType({
|
5124
|
-
name: stringType(),
|
5125
|
-
increment: stringType().optional(),
|
5126
|
-
minValue: stringType().optional(),
|
5127
|
-
maxValue: stringType().optional(),
|
5128
|
-
startWith: stringType().optional(),
|
5129
|
-
cache: stringType().optional(),
|
5130
|
-
cycle: booleanType().optional(),
|
5131
|
-
schema: stringType()
|
5132
|
-
}).strict();
|
5133
|
-
var sequenceSquashed = objectType({
|
5134
|
-
name: stringType(),
|
5135
|
-
schema: stringType(),
|
5136
|
-
values: stringType()
|
5137
|
-
}).strict();
|
5138
|
-
var columnV7 = objectType({
|
5139
|
-
name: stringType(),
|
5140
|
-
type: stringType(),
|
5141
|
-
typeSchema: stringType().optional(),
|
5142
|
-
primaryKey: booleanType(),
|
5143
|
-
notNull: booleanType(),
|
5144
|
-
default: anyType().optional(),
|
5145
|
-
isUnique: anyType().optional(),
|
5146
|
-
uniqueName: stringType().optional(),
|
5147
|
-
nullsNotDistinct: booleanType().optional()
|
5148
|
-
}).strict();
|
5149
5119
|
var column2 = objectType({
|
5150
5120
|
name: stringType(),
|
5151
5121
|
type: stringType(),
|
@@ -5155,28 +5125,7 @@ var column2 = objectType({
|
|
5155
5125
|
default: anyType().optional(),
|
5156
5126
|
isUnique: anyType().optional(),
|
5157
5127
|
uniqueName: stringType().optional(),
|
5158
|
-
nullsNotDistinct: booleanType().optional()
|
5159
|
-
generated: objectType({
|
5160
|
-
type: literalType("stored"),
|
5161
|
-
as: stringType()
|
5162
|
-
}).optional(),
|
5163
|
-
identity: sequenceSchema.merge(objectType({ type: enumType(["always", "byDefault"]) })).optional()
|
5164
|
-
}).strict();
|
5165
|
-
var columnSquashed = objectType({
|
5166
|
-
name: stringType(),
|
5167
|
-
type: stringType(),
|
5168
|
-
typeSchema: stringType().optional(),
|
5169
|
-
primaryKey: booleanType(),
|
5170
|
-
notNull: booleanType(),
|
5171
|
-
default: anyType().optional(),
|
5172
|
-
isUnique: anyType().optional(),
|
5173
|
-
uniqueName: stringType().optional(),
|
5174
|
-
nullsNotDistinct: booleanType().optional(),
|
5175
|
-
generated: objectType({
|
5176
|
-
type: literalType("stored"),
|
5177
|
-
as: stringType()
|
5178
|
-
}).optional(),
|
5179
|
-
identity: stringType().optional()
|
5128
|
+
nullsNotDistinct: booleanType().optional()
|
5180
5129
|
}).strict();
|
5181
5130
|
var tableV32 = objectType({
|
5182
5131
|
name: stringType(),
|
@@ -5200,15 +5149,6 @@ var tableV42 = objectType({
|
|
5200
5149
|
indexes: recordType(stringType(), indexV4),
|
5201
5150
|
foreignKeys: recordType(stringType(), fk2)
|
5202
5151
|
}).strict();
|
5203
|
-
var tableV5 = objectType({
|
5204
|
-
name: stringType(),
|
5205
|
-
schema: stringType(),
|
5206
|
-
columns: recordType(stringType(), column2),
|
5207
|
-
indexes: recordType(stringType(), indexV5),
|
5208
|
-
foreignKeys: recordType(stringType(), fk2),
|
5209
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5210
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5211
|
-
}).strict();
|
5212
5152
|
var tableV6 = objectType({
|
5213
5153
|
name: stringType(),
|
5214
5154
|
schema: stringType(),
|
@@ -5218,11 +5158,11 @@ var tableV6 = objectType({
|
|
5218
5158
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5219
5159
|
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5220
5160
|
}).strict();
|
5221
|
-
var
|
5161
|
+
var tableV5 = objectType({
|
5222
5162
|
name: stringType(),
|
5223
5163
|
schema: stringType(),
|
5224
|
-
columns: recordType(stringType(),
|
5225
|
-
indexes: recordType(stringType(),
|
5164
|
+
columns: recordType(stringType(), column2),
|
5165
|
+
indexes: recordType(stringType(), indexV5),
|
5226
5166
|
foreignKeys: recordType(stringType(), fk2),
|
5227
5167
|
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5228
5168
|
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
@@ -5306,27 +5246,12 @@ var pgSchemaExternal = objectType({
|
|
5306
5246
|
columns: recordType(stringType(), stringType())
|
5307
5247
|
})
|
5308
5248
|
}).strict();
|
5309
|
-
var pgSchemaInternalV7 = objectType({
|
5310
|
-
version: literalType("7"),
|
5311
|
-
dialect: literalType("postgresql"),
|
5312
|
-
tables: recordType(stringType(), tableV7),
|
5313
|
-
enums: recordType(stringType(), enumSchema),
|
5314
|
-
schemas: recordType(stringType(), stringType()),
|
5315
|
-
sequences: recordType(stringType(), sequenceSchema),
|
5316
|
-
_meta: objectType({
|
5317
|
-
schemas: recordType(stringType(), stringType()),
|
5318
|
-
tables: recordType(stringType(), stringType()),
|
5319
|
-
columns: recordType(stringType(), stringType())
|
5320
|
-
}),
|
5321
|
-
internal: kitInternals2
|
5322
|
-
}).strict();
|
5323
5249
|
var pgSchemaInternal = objectType({
|
5324
5250
|
version: literalType("7"),
|
5325
5251
|
dialect: literalType("postgresql"),
|
5326
5252
|
tables: recordType(stringType(), table2),
|
5327
5253
|
enums: recordType(stringType(), enumSchema),
|
5328
5254
|
schemas: recordType(stringType(), stringType()),
|
5329
|
-
sequences: recordType(stringType(), sequenceSchema).default({}),
|
5330
5255
|
_meta: objectType({
|
5331
5256
|
schemas: recordType(stringType(), stringType()),
|
5332
5257
|
tables: recordType(stringType(), stringType()),
|
@@ -5337,7 +5262,7 @@ var pgSchemaInternal = objectType({
|
|
5337
5262
|
var tableSquashed2 = objectType({
|
5338
5263
|
name: stringType(),
|
5339
5264
|
schema: stringType(),
|
5340
|
-
columns: recordType(stringType(),
|
5265
|
+
columns: recordType(stringType(), column2),
|
5341
5266
|
indexes: recordType(stringType(), stringType()),
|
5342
5267
|
foreignKeys: recordType(stringType(), stringType()),
|
5343
5268
|
compositePrimaryKeys: recordType(stringType(), stringType()),
|
@@ -5369,14 +5294,12 @@ var pgSchemaSquashed = objectType({
|
|
5369
5294
|
dialect: literalType("postgresql"),
|
5370
5295
|
tables: recordType(stringType(), tableSquashed2),
|
5371
5296
|
enums: recordType(stringType(), enumSchema),
|
5372
|
-
schemas: recordType(stringType(), stringType())
|
5373
|
-
sequences: recordType(stringType(), sequenceSquashed)
|
5297
|
+
schemas: recordType(stringType(), stringType())
|
5374
5298
|
}).strict();
|
5375
5299
|
var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5376
5300
|
var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
5377
5301
|
var pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
5378
5302
|
var pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
5379
|
-
var pgSchemaV7 = pgSchemaInternalV7.merge(schemaHash2);
|
5380
5303
|
var pgSchema = pgSchemaInternal.merge(schemaHash2);
|
5381
5304
|
var backwardCompatiblePgSchema = unionType([
|
5382
5305
|
pgSchemaV5,
|
@@ -5391,7 +5314,6 @@ var dryPg = pgSchema.parse({
|
|
5391
5314
|
tables: {},
|
5392
5315
|
enums: {},
|
5393
5316
|
schemas: {},
|
5394
|
-
sequences: {},
|
5395
5317
|
_meta: {
|
5396
5318
|
schemas: {},
|
5397
5319
|
tables: {},
|
@@ -5425,11 +5347,7 @@ var column3 = objectType({
|
|
5425
5347
|
primaryKey: booleanType(),
|
5426
5348
|
notNull: booleanType(),
|
5427
5349
|
autoincrement: booleanType().optional(),
|
5428
|
-
default: anyType().optional()
|
5429
|
-
generated: objectType({
|
5430
|
-
type: enumType(["stored", "virtual"]),
|
5431
|
-
as: stringType()
|
5432
|
-
}).optional()
|
5350
|
+
default: anyType().optional()
|
5433
5351
|
}).strict();
|
5434
5352
|
var tableV33 = objectType({
|
5435
5353
|
name: stringType(),
|