drizzle-kit 0.21.2-4691a9f → 0.21.2-7202142
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +15 -165
- package/package.json +2 -2
- package/payload.d.mts +11 -5
- package/payload.d.ts +11 -5
- package/payload.js +361 -478
- package/payload.mjs +361 -478
- package/utils-studio.js +9 -87
- package/utils-studio.mjs +9 -87
- package/utils.js +7 -77
- package/utils.mjs +7 -77
package/utils-studio.js
CHANGED
@@ -569,7 +569,7 @@ var init_global = __esm({
|
|
569
569
|
"src/global.ts"() {
|
570
570
|
"use strict";
|
571
571
|
originUUID = "00000000-0000-0000-0000-000000000000";
|
572
|
-
snapshotVersion = "
|
572
|
+
snapshotVersion = "6";
|
573
573
|
}
|
574
574
|
});
|
575
575
|
|
@@ -4498,7 +4498,7 @@ var init_mysqlSchema = __esm({
|
|
4498
4498
|
});
|
4499
4499
|
|
4500
4500
|
// src/serializer/pgSchema.ts
|
4501
|
-
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2,
|
4501
|
+
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2, fk2, column2, tableV32, compositePK2, uniqueConstraint2, tableV42, table2, schemaHash2, kitInternals2, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaExternal, pgSchemaInternal, tableSquashed2, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchema2, backwardCompatiblePgSchema, dryPg;
|
4502
4502
|
var init_pgSchema = __esm({
|
4503
4503
|
"src/serializer/pgSchema.ts"() {
|
4504
4504
|
"use strict";
|
@@ -4582,33 +4582,6 @@ var init_pgSchema = __esm({
|
|
4582
4582
|
where: stringType().optional(),
|
4583
4583
|
concurrently: booleanType().default(false)
|
4584
4584
|
}).strict();
|
4585
|
-
indexV4 = objectType({
|
4586
|
-
name: stringType(),
|
4587
|
-
columns: stringType().array(),
|
4588
|
-
isUnique: booleanType(),
|
4589
|
-
with: recordType(stringType(), stringType()).optional(),
|
4590
|
-
method: stringType().default("btree"),
|
4591
|
-
where: stringType().optional(),
|
4592
|
-
concurrently: booleanType().default(false)
|
4593
|
-
}).strict();
|
4594
|
-
indexV5 = objectType({
|
4595
|
-
name: stringType(),
|
4596
|
-
columns: stringType().array(),
|
4597
|
-
isUnique: booleanType(),
|
4598
|
-
with: recordType(stringType(), stringType()).optional(),
|
4599
|
-
method: stringType().default("btree"),
|
4600
|
-
where: stringType().optional(),
|
4601
|
-
concurrently: booleanType().default(false)
|
4602
|
-
}).strict();
|
4603
|
-
indexV6 = objectType({
|
4604
|
-
name: stringType(),
|
4605
|
-
columns: stringType().array(),
|
4606
|
-
isUnique: booleanType(),
|
4607
|
-
with: recordType(stringType(), stringType()).optional(),
|
4608
|
-
method: stringType().default("btree"),
|
4609
|
-
where: stringType().optional(),
|
4610
|
-
concurrently: booleanType().default(false)
|
4611
|
-
}).strict();
|
4612
4585
|
fk2 = objectType({
|
4613
4586
|
name: stringType(),
|
4614
4587
|
tableFrom: stringType(),
|
@@ -4649,27 +4622,9 @@ var init_pgSchema = __esm({
|
|
4649
4622
|
name: stringType(),
|
4650
4623
|
schema: stringType(),
|
4651
4624
|
columns: recordType(stringType(), column2),
|
4652
|
-
indexes: recordType(stringType(),
|
4625
|
+
indexes: recordType(stringType(), index2),
|
4653
4626
|
foreignKeys: recordType(stringType(), fk2)
|
4654
4627
|
}).strict();
|
4655
|
-
tableV6 = objectType({
|
4656
|
-
name: stringType(),
|
4657
|
-
schema: stringType(),
|
4658
|
-
columns: recordType(stringType(), column2),
|
4659
|
-
indexes: recordType(stringType(), indexV6),
|
4660
|
-
foreignKeys: recordType(stringType(), fk2),
|
4661
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
4662
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
4663
|
-
}).strict();
|
4664
|
-
tableV5 = objectType({
|
4665
|
-
name: stringType(),
|
4666
|
-
schema: stringType(),
|
4667
|
-
columns: recordType(stringType(), column2),
|
4668
|
-
indexes: recordType(stringType(), indexV5),
|
4669
|
-
foreignKeys: recordType(stringType(), fk2),
|
4670
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
4671
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
4672
|
-
}).strict();
|
4673
4628
|
table2 = objectType({
|
4674
4629
|
name: stringType(),
|
4675
4630
|
schema: stringType(),
|
@@ -4714,7 +4669,7 @@ var init_pgSchema = __esm({
|
|
4714
4669
|
pgSchemaInternalV5 = objectType({
|
4715
4670
|
version: literalType("5"),
|
4716
4671
|
dialect: literalType("pg"),
|
4717
|
-
tables: recordType(stringType(),
|
4672
|
+
tables: recordType(stringType(), table2),
|
4718
4673
|
enums: recordType(stringType(), enumSchemaV1),
|
4719
4674
|
schemas: recordType(stringType(), stringType()),
|
4720
4675
|
_meta: objectType({
|
@@ -4724,19 +4679,6 @@ var init_pgSchema = __esm({
|
|
4724
4679
|
}),
|
4725
4680
|
internal: kitInternals2
|
4726
4681
|
}).strict();
|
4727
|
-
pgSchemaInternalV6 = objectType({
|
4728
|
-
version: literalType("6"),
|
4729
|
-
dialect: literalType("postgresql"),
|
4730
|
-
tables: recordType(stringType(), tableV6),
|
4731
|
-
enums: recordType(stringType(), enumSchema),
|
4732
|
-
schemas: recordType(stringType(), stringType()),
|
4733
|
-
_meta: objectType({
|
4734
|
-
schemas: recordType(stringType(), stringType()),
|
4735
|
-
tables: recordType(stringType(), stringType()),
|
4736
|
-
columns: recordType(stringType(), stringType())
|
4737
|
-
}),
|
4738
|
-
internal: kitInternals2
|
4739
|
-
}).strict();
|
4740
4682
|
pgSchemaExternal = objectType({
|
4741
4683
|
version: literalType("5"),
|
4742
4684
|
dialect: literalType("pg"),
|
@@ -4750,7 +4692,7 @@ var init_pgSchema = __esm({
|
|
4750
4692
|
})
|
4751
4693
|
}).strict();
|
4752
4694
|
pgSchemaInternal = objectType({
|
4753
|
-
version: literalType("
|
4695
|
+
version: literalType("6"),
|
4754
4696
|
dialect: literalType("postgresql"),
|
4755
4697
|
tables: recordType(stringType(), table2),
|
4756
4698
|
enums: recordType(stringType(), enumSchema),
|
@@ -4785,15 +4727,8 @@ var init_pgSchema = __esm({
|
|
4785
4727
|
enums: recordType(stringType(), enumSchemaV1),
|
4786
4728
|
schemas: recordType(stringType(), stringType())
|
4787
4729
|
}).strict();
|
4788
|
-
pgSchemaSquashedV6 = objectType({
|
4789
|
-
version: literalType("6"),
|
4790
|
-
dialect: literalType("postgresql"),
|
4791
|
-
tables: recordType(stringType(), tableSquashed2),
|
4792
|
-
enums: recordType(stringType(), enumSchema),
|
4793
|
-
schemas: recordType(stringType(), stringType())
|
4794
|
-
}).strict();
|
4795
4730
|
pgSchemaSquashed = objectType({
|
4796
|
-
version: literalType("
|
4731
|
+
version: literalType("6"),
|
4797
4732
|
dialect: literalType("postgresql"),
|
4798
4733
|
tables: recordType(stringType(), tableSquashed2),
|
4799
4734
|
enums: recordType(stringType(), enumSchema),
|
@@ -4802,13 +4737,8 @@ var init_pgSchema = __esm({
|
|
4802
4737
|
pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
4803
4738
|
pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
4804
4739
|
pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
4805
|
-
pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
4806
4740
|
pgSchema2 = pgSchemaInternal.merge(schemaHash2);
|
4807
|
-
backwardCompatiblePgSchema = unionType([
|
4808
|
-
pgSchemaV5,
|
4809
|
-
pgSchemaV6,
|
4810
|
-
pgSchema2
|
4811
|
-
]);
|
4741
|
+
backwardCompatiblePgSchema = unionType([pgSchemaV5, pgSchema2]);
|
4812
4742
|
dryPg = pgSchema2.parse({
|
4813
4743
|
version: snapshotVersion,
|
4814
4744
|
dialect: "postgresql",
|
@@ -5449,13 +5379,6 @@ var require_brace_expansion = __commonJS({
|
|
5449
5379
|
}
|
5450
5380
|
});
|
5451
5381
|
|
5452
|
-
// src/extensions/vector.ts
|
5453
|
-
var init_vector = __esm({
|
5454
|
-
"src/extensions/vector.ts"() {
|
5455
|
-
"use strict";
|
5456
|
-
}
|
5457
|
-
});
|
5458
|
-
|
5459
5382
|
// src/serializer/pgSerializer.ts
|
5460
5383
|
var import_pg_core2, import_pg_core3, import_drizzle_orm2, dialect4, trimChar, fromDatabase2, columnToDefault, defaultForColumn;
|
5461
5384
|
var init_pgSerializer = __esm({
|
@@ -5466,7 +5389,6 @@ var init_pgSerializer = __esm({
|
|
5466
5389
|
import_drizzle_orm2 = require("drizzle-orm");
|
5467
5390
|
init_serializer();
|
5468
5391
|
init_outputs();
|
5469
|
-
init_vector();
|
5470
5392
|
dialect4 = new import_pg_core2.PgDialect();
|
5471
5393
|
trimChar = (str, char) => {
|
5472
5394
|
let start = 0;
|
@@ -5742,7 +5664,7 @@ var init_pgSerializer = __esm({
|
|
5742
5664
|
}
|
5743
5665
|
}
|
5744
5666
|
const dbIndexes = await db.query(
|
5745
|
-
`SELECT
|
5667
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
5746
5668
|
k.i AS index_order,
|
5747
5669
|
i.indisunique as is_unique,
|
5748
5670
|
am.amname as method,
|
@@ -5874,7 +5796,7 @@ var init_pgSerializer = __esm({
|
|
5874
5796
|
}
|
5875
5797
|
const schemasObject = Object.fromEntries([...schemas].map((it) => [it, it]));
|
5876
5798
|
return {
|
5877
|
-
version: "
|
5799
|
+
version: "6",
|
5878
5800
|
dialect: "postgresql",
|
5879
5801
|
tables: result,
|
5880
5802
|
enums: enumsToReturn,
|
package/utils-studio.mjs
CHANGED
@@ -570,7 +570,7 @@ var init_global = __esm({
|
|
570
570
|
"src/global.ts"() {
|
571
571
|
"use strict";
|
572
572
|
originUUID = "00000000-0000-0000-0000-000000000000";
|
573
|
-
snapshotVersion = "
|
573
|
+
snapshotVersion = "6";
|
574
574
|
}
|
575
575
|
});
|
576
576
|
|
@@ -4499,7 +4499,7 @@ var init_mysqlSchema = __esm({
|
|
4499
4499
|
});
|
4500
4500
|
|
4501
4501
|
// src/serializer/pgSchema.ts
|
4502
|
-
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2,
|
4502
|
+
var indexV2, columnV2, tableV2, enumSchemaV1, enumSchema, pgSchemaV2, references, columnV1, tableV1, pgSchemaV1, indexColumn, index2, fk2, column2, tableV32, compositePK2, uniqueConstraint2, tableV42, table2, schemaHash2, kitInternals2, pgSchemaInternalV3, pgSchemaInternalV4, pgSchemaInternalV5, pgSchemaExternal, pgSchemaInternal, tableSquashed2, tableSquashedV42, pgSchemaSquashedV4, pgSchemaSquashed, pgSchemaV3, pgSchemaV4, pgSchemaV5, pgSchema2, backwardCompatiblePgSchema, dryPg;
|
4503
4503
|
var init_pgSchema = __esm({
|
4504
4504
|
"src/serializer/pgSchema.ts"() {
|
4505
4505
|
"use strict";
|
@@ -4583,33 +4583,6 @@ var init_pgSchema = __esm({
|
|
4583
4583
|
where: stringType().optional(),
|
4584
4584
|
concurrently: booleanType().default(false)
|
4585
4585
|
}).strict();
|
4586
|
-
indexV4 = objectType({
|
4587
|
-
name: stringType(),
|
4588
|
-
columns: stringType().array(),
|
4589
|
-
isUnique: booleanType(),
|
4590
|
-
with: recordType(stringType(), stringType()).optional(),
|
4591
|
-
method: stringType().default("btree"),
|
4592
|
-
where: stringType().optional(),
|
4593
|
-
concurrently: booleanType().default(false)
|
4594
|
-
}).strict();
|
4595
|
-
indexV5 = objectType({
|
4596
|
-
name: stringType(),
|
4597
|
-
columns: stringType().array(),
|
4598
|
-
isUnique: booleanType(),
|
4599
|
-
with: recordType(stringType(), stringType()).optional(),
|
4600
|
-
method: stringType().default("btree"),
|
4601
|
-
where: stringType().optional(),
|
4602
|
-
concurrently: booleanType().default(false)
|
4603
|
-
}).strict();
|
4604
|
-
indexV6 = objectType({
|
4605
|
-
name: stringType(),
|
4606
|
-
columns: stringType().array(),
|
4607
|
-
isUnique: booleanType(),
|
4608
|
-
with: recordType(stringType(), stringType()).optional(),
|
4609
|
-
method: stringType().default("btree"),
|
4610
|
-
where: stringType().optional(),
|
4611
|
-
concurrently: booleanType().default(false)
|
4612
|
-
}).strict();
|
4613
4586
|
fk2 = objectType({
|
4614
4587
|
name: stringType(),
|
4615
4588
|
tableFrom: stringType(),
|
@@ -4650,27 +4623,9 @@ var init_pgSchema = __esm({
|
|
4650
4623
|
name: stringType(),
|
4651
4624
|
schema: stringType(),
|
4652
4625
|
columns: recordType(stringType(), column2),
|
4653
|
-
indexes: recordType(stringType(),
|
4626
|
+
indexes: recordType(stringType(), index2),
|
4654
4627
|
foreignKeys: recordType(stringType(), fk2)
|
4655
4628
|
}).strict();
|
4656
|
-
tableV6 = objectType({
|
4657
|
-
name: stringType(),
|
4658
|
-
schema: stringType(),
|
4659
|
-
columns: recordType(stringType(), column2),
|
4660
|
-
indexes: recordType(stringType(), indexV6),
|
4661
|
-
foreignKeys: recordType(stringType(), fk2),
|
4662
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
4663
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
4664
|
-
}).strict();
|
4665
|
-
tableV5 = objectType({
|
4666
|
-
name: stringType(),
|
4667
|
-
schema: stringType(),
|
4668
|
-
columns: recordType(stringType(), column2),
|
4669
|
-
indexes: recordType(stringType(), indexV5),
|
4670
|
-
foreignKeys: recordType(stringType(), fk2),
|
4671
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
4672
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
4673
|
-
}).strict();
|
4674
4629
|
table2 = objectType({
|
4675
4630
|
name: stringType(),
|
4676
4631
|
schema: stringType(),
|
@@ -4715,7 +4670,7 @@ var init_pgSchema = __esm({
|
|
4715
4670
|
pgSchemaInternalV5 = objectType({
|
4716
4671
|
version: literalType("5"),
|
4717
4672
|
dialect: literalType("pg"),
|
4718
|
-
tables: recordType(stringType(),
|
4673
|
+
tables: recordType(stringType(), table2),
|
4719
4674
|
enums: recordType(stringType(), enumSchemaV1),
|
4720
4675
|
schemas: recordType(stringType(), stringType()),
|
4721
4676
|
_meta: objectType({
|
@@ -4725,19 +4680,6 @@ var init_pgSchema = __esm({
|
|
4725
4680
|
}),
|
4726
4681
|
internal: kitInternals2
|
4727
4682
|
}).strict();
|
4728
|
-
pgSchemaInternalV6 = objectType({
|
4729
|
-
version: literalType("6"),
|
4730
|
-
dialect: literalType("postgresql"),
|
4731
|
-
tables: recordType(stringType(), tableV6),
|
4732
|
-
enums: recordType(stringType(), enumSchema),
|
4733
|
-
schemas: recordType(stringType(), stringType()),
|
4734
|
-
_meta: objectType({
|
4735
|
-
schemas: recordType(stringType(), stringType()),
|
4736
|
-
tables: recordType(stringType(), stringType()),
|
4737
|
-
columns: recordType(stringType(), stringType())
|
4738
|
-
}),
|
4739
|
-
internal: kitInternals2
|
4740
|
-
}).strict();
|
4741
4683
|
pgSchemaExternal = objectType({
|
4742
4684
|
version: literalType("5"),
|
4743
4685
|
dialect: literalType("pg"),
|
@@ -4751,7 +4693,7 @@ var init_pgSchema = __esm({
|
|
4751
4693
|
})
|
4752
4694
|
}).strict();
|
4753
4695
|
pgSchemaInternal = objectType({
|
4754
|
-
version: literalType("
|
4696
|
+
version: literalType("6"),
|
4755
4697
|
dialect: literalType("postgresql"),
|
4756
4698
|
tables: recordType(stringType(), table2),
|
4757
4699
|
enums: recordType(stringType(), enumSchema),
|
@@ -4786,15 +4728,8 @@ var init_pgSchema = __esm({
|
|
4786
4728
|
enums: recordType(stringType(), enumSchemaV1),
|
4787
4729
|
schemas: recordType(stringType(), stringType())
|
4788
4730
|
}).strict();
|
4789
|
-
pgSchemaSquashedV6 = objectType({
|
4790
|
-
version: literalType("6"),
|
4791
|
-
dialect: literalType("postgresql"),
|
4792
|
-
tables: recordType(stringType(), tableSquashed2),
|
4793
|
-
enums: recordType(stringType(), enumSchema),
|
4794
|
-
schemas: recordType(stringType(), stringType())
|
4795
|
-
}).strict();
|
4796
4731
|
pgSchemaSquashed = objectType({
|
4797
|
-
version: literalType("
|
4732
|
+
version: literalType("6"),
|
4798
4733
|
dialect: literalType("postgresql"),
|
4799
4734
|
tables: recordType(stringType(), tableSquashed2),
|
4800
4735
|
enums: recordType(stringType(), enumSchema),
|
@@ -4803,13 +4738,8 @@ var init_pgSchema = __esm({
|
|
4803
4738
|
pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
4804
4739
|
pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
4805
4740
|
pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
4806
|
-
pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
4807
4741
|
pgSchema2 = pgSchemaInternal.merge(schemaHash2);
|
4808
|
-
backwardCompatiblePgSchema = unionType([
|
4809
|
-
pgSchemaV5,
|
4810
|
-
pgSchemaV6,
|
4811
|
-
pgSchema2
|
4812
|
-
]);
|
4742
|
+
backwardCompatiblePgSchema = unionType([pgSchemaV5, pgSchema2]);
|
4813
4743
|
dryPg = pgSchema2.parse({
|
4814
4744
|
version: snapshotVersion,
|
4815
4745
|
dialect: "postgresql",
|
@@ -5454,13 +5384,6 @@ var require_brace_expansion = __commonJS({
|
|
5454
5384
|
}
|
5455
5385
|
});
|
5456
5386
|
|
5457
|
-
// src/extensions/vector.ts
|
5458
|
-
var init_vector = __esm({
|
5459
|
-
"src/extensions/vector.ts"() {
|
5460
|
-
"use strict";
|
5461
|
-
}
|
5462
|
-
});
|
5463
|
-
|
5464
5387
|
// src/serializer/pgSerializer.ts
|
5465
5388
|
import {
|
5466
5389
|
PgDialect,
|
@@ -5475,7 +5398,6 @@ var init_pgSerializer = __esm({
|
|
5475
5398
|
"use strict";
|
5476
5399
|
init_serializer();
|
5477
5400
|
init_outputs();
|
5478
|
-
init_vector();
|
5479
5401
|
dialect4 = new PgDialect();
|
5480
5402
|
trimChar = (str, char) => {
|
5481
5403
|
let start = 0;
|
@@ -5751,7 +5673,7 @@ var init_pgSerializer = __esm({
|
|
5751
5673
|
}
|
5752
5674
|
}
|
5753
5675
|
const dbIndexes = await db.query(
|
5754
|
-
`SELECT
|
5676
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
5755
5677
|
k.i AS index_order,
|
5756
5678
|
i.indisunique as is_unique,
|
5757
5679
|
am.amname as method,
|
@@ -5883,7 +5805,7 @@ var init_pgSerializer = __esm({
|
|
5883
5805
|
}
|
5884
5806
|
const schemasObject = Object.fromEntries([...schemas].map((it) => [it, it]));
|
5885
5807
|
return {
|
5886
|
-
version: "
|
5808
|
+
version: "6",
|
5887
5809
|
dialect: "postgresql",
|
5888
5810
|
tables: result,
|
5889
5811
|
enums: enumsToReturn,
|
package/utils.js
CHANGED
@@ -1077,7 +1077,7 @@ var info = (msg, greyMsg = "") => {
|
|
1077
1077
|
|
1078
1078
|
// src/global.ts
|
1079
1079
|
var originUUID = "00000000-0000-0000-0000-000000000000";
|
1080
|
-
var snapshotVersion = "
|
1080
|
+
var snapshotVersion = "6";
|
1081
1081
|
|
1082
1082
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
1083
1083
|
var util;
|
@@ -5076,33 +5076,6 @@ var index2 = objectType({
|
|
5076
5076
|
where: stringType().optional(),
|
5077
5077
|
concurrently: booleanType().default(false)
|
5078
5078
|
}).strict();
|
5079
|
-
var indexV4 = objectType({
|
5080
|
-
name: stringType(),
|
5081
|
-
columns: stringType().array(),
|
5082
|
-
isUnique: booleanType(),
|
5083
|
-
with: recordType(stringType(), stringType()).optional(),
|
5084
|
-
method: stringType().default("btree"),
|
5085
|
-
where: stringType().optional(),
|
5086
|
-
concurrently: booleanType().default(false)
|
5087
|
-
}).strict();
|
5088
|
-
var indexV5 = objectType({
|
5089
|
-
name: stringType(),
|
5090
|
-
columns: stringType().array(),
|
5091
|
-
isUnique: booleanType(),
|
5092
|
-
with: recordType(stringType(), stringType()).optional(),
|
5093
|
-
method: stringType().default("btree"),
|
5094
|
-
where: stringType().optional(),
|
5095
|
-
concurrently: booleanType().default(false)
|
5096
|
-
}).strict();
|
5097
|
-
var indexV6 = objectType({
|
5098
|
-
name: stringType(),
|
5099
|
-
columns: stringType().array(),
|
5100
|
-
isUnique: booleanType(),
|
5101
|
-
with: recordType(stringType(), stringType()).optional(),
|
5102
|
-
method: stringType().default("btree"),
|
5103
|
-
where: stringType().optional(),
|
5104
|
-
concurrently: booleanType().default(false)
|
5105
|
-
}).strict();
|
5106
5079
|
var fk2 = objectType({
|
5107
5080
|
name: stringType(),
|
5108
5081
|
tableFrom: stringType(),
|
@@ -5143,27 +5116,9 @@ var tableV42 = objectType({
|
|
5143
5116
|
name: stringType(),
|
5144
5117
|
schema: stringType(),
|
5145
5118
|
columns: recordType(stringType(), column2),
|
5146
|
-
indexes: recordType(stringType(),
|
5119
|
+
indexes: recordType(stringType(), index2),
|
5147
5120
|
foreignKeys: recordType(stringType(), fk2)
|
5148
5121
|
}).strict();
|
5149
|
-
var tableV6 = objectType({
|
5150
|
-
name: stringType(),
|
5151
|
-
schema: stringType(),
|
5152
|
-
columns: recordType(stringType(), column2),
|
5153
|
-
indexes: recordType(stringType(), indexV6),
|
5154
|
-
foreignKeys: recordType(stringType(), fk2),
|
5155
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5156
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5157
|
-
}).strict();
|
5158
|
-
var tableV5 = objectType({
|
5159
|
-
name: stringType(),
|
5160
|
-
schema: stringType(),
|
5161
|
-
columns: recordType(stringType(), column2),
|
5162
|
-
indexes: recordType(stringType(), indexV5),
|
5163
|
-
foreignKeys: recordType(stringType(), fk2),
|
5164
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5165
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5166
|
-
}).strict();
|
5167
5122
|
var table2 = objectType({
|
5168
5123
|
name: stringType(),
|
5169
5124
|
schema: stringType(),
|
@@ -5208,7 +5163,7 @@ var pgSchemaInternalV4 = objectType({
|
|
5208
5163
|
var pgSchemaInternalV5 = objectType({
|
5209
5164
|
version: literalType("5"),
|
5210
5165
|
dialect: literalType("pg"),
|
5211
|
-
tables: recordType(stringType(),
|
5166
|
+
tables: recordType(stringType(), table2),
|
5212
5167
|
enums: recordType(stringType(), enumSchemaV1),
|
5213
5168
|
schemas: recordType(stringType(), stringType()),
|
5214
5169
|
_meta: objectType({
|
@@ -5218,19 +5173,6 @@ var pgSchemaInternalV5 = objectType({
|
|
5218
5173
|
}),
|
5219
5174
|
internal: kitInternals2
|
5220
5175
|
}).strict();
|
5221
|
-
var pgSchemaInternalV6 = objectType({
|
5222
|
-
version: literalType("6"),
|
5223
|
-
dialect: literalType("postgresql"),
|
5224
|
-
tables: recordType(stringType(), tableV6),
|
5225
|
-
enums: recordType(stringType(), enumSchema),
|
5226
|
-
schemas: recordType(stringType(), stringType()),
|
5227
|
-
_meta: objectType({
|
5228
|
-
schemas: recordType(stringType(), stringType()),
|
5229
|
-
tables: recordType(stringType(), stringType()),
|
5230
|
-
columns: recordType(stringType(), stringType())
|
5231
|
-
}),
|
5232
|
-
internal: kitInternals2
|
5233
|
-
}).strict();
|
5234
5176
|
var pgSchemaExternal = objectType({
|
5235
5177
|
version: literalType("5"),
|
5236
5178
|
dialect: literalType("pg"),
|
@@ -5244,7 +5186,7 @@ var pgSchemaExternal = objectType({
|
|
5244
5186
|
})
|
5245
5187
|
}).strict();
|
5246
5188
|
var pgSchemaInternal = objectType({
|
5247
|
-
version: literalType("
|
5189
|
+
version: literalType("6"),
|
5248
5190
|
dialect: literalType("postgresql"),
|
5249
5191
|
tables: recordType(stringType(), table2),
|
5250
5192
|
enums: recordType(stringType(), enumSchema),
|
@@ -5279,15 +5221,8 @@ var pgSchemaSquashedV4 = objectType({
|
|
5279
5221
|
enums: recordType(stringType(), enumSchemaV1),
|
5280
5222
|
schemas: recordType(stringType(), stringType())
|
5281
5223
|
}).strict();
|
5282
|
-
var pgSchemaSquashedV6 = objectType({
|
5283
|
-
version: literalType("6"),
|
5284
|
-
dialect: literalType("postgresql"),
|
5285
|
-
tables: recordType(stringType(), tableSquashed2),
|
5286
|
-
enums: recordType(stringType(), enumSchema),
|
5287
|
-
schemas: recordType(stringType(), stringType())
|
5288
|
-
}).strict();
|
5289
5224
|
var pgSchemaSquashed = objectType({
|
5290
|
-
version: literalType("
|
5225
|
+
version: literalType("6"),
|
5291
5226
|
dialect: literalType("postgresql"),
|
5292
5227
|
tables: recordType(stringType(), tableSquashed2),
|
5293
5228
|
enums: recordType(stringType(), enumSchema),
|
@@ -5296,13 +5231,8 @@ var pgSchemaSquashed = objectType({
|
|
5296
5231
|
var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5297
5232
|
var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
5298
5233
|
var pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
5299
|
-
var pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
5300
5234
|
var pgSchema = pgSchemaInternal.merge(schemaHash2);
|
5301
|
-
var backwardCompatiblePgSchema = unionType([
|
5302
|
-
pgSchemaV5,
|
5303
|
-
pgSchemaV6,
|
5304
|
-
pgSchema
|
5305
|
-
]);
|
5235
|
+
var backwardCompatiblePgSchema = unionType([pgSchemaV5, pgSchema]);
|
5306
5236
|
var dryPg = pgSchema.parse({
|
5307
5237
|
version: snapshotVersion,
|
5308
5238
|
dialect: "postgresql",
|
@@ -5480,7 +5410,7 @@ var prepareOutFolder = (out, dialect3) => {
|
|
5480
5410
|
var validatorForDialect = (dialect3) => {
|
5481
5411
|
switch (dialect3) {
|
5482
5412
|
case "postgresql":
|
5483
|
-
return { validator: backwardCompatiblePgSchema, version:
|
5413
|
+
return { validator: backwardCompatiblePgSchema, version: 6 };
|
5484
5414
|
case "sqlite":
|
5485
5415
|
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
5486
5416
|
case "mysql":
|
package/utils.mjs
CHANGED
@@ -1068,7 +1068,7 @@ var info = (msg, greyMsg = "") => {
|
|
1068
1068
|
|
1069
1069
|
// src/global.ts
|
1070
1070
|
var originUUID = "00000000-0000-0000-0000-000000000000";
|
1071
|
-
var snapshotVersion = "
|
1071
|
+
var snapshotVersion = "6";
|
1072
1072
|
|
1073
1073
|
// node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs
|
1074
1074
|
var util;
|
@@ -5067,33 +5067,6 @@ var index2 = objectType({
|
|
5067
5067
|
where: stringType().optional(),
|
5068
5068
|
concurrently: booleanType().default(false)
|
5069
5069
|
}).strict();
|
5070
|
-
var indexV4 = objectType({
|
5071
|
-
name: stringType(),
|
5072
|
-
columns: stringType().array(),
|
5073
|
-
isUnique: booleanType(),
|
5074
|
-
with: recordType(stringType(), stringType()).optional(),
|
5075
|
-
method: stringType().default("btree"),
|
5076
|
-
where: stringType().optional(),
|
5077
|
-
concurrently: booleanType().default(false)
|
5078
|
-
}).strict();
|
5079
|
-
var indexV5 = objectType({
|
5080
|
-
name: stringType(),
|
5081
|
-
columns: stringType().array(),
|
5082
|
-
isUnique: booleanType(),
|
5083
|
-
with: recordType(stringType(), stringType()).optional(),
|
5084
|
-
method: stringType().default("btree"),
|
5085
|
-
where: stringType().optional(),
|
5086
|
-
concurrently: booleanType().default(false)
|
5087
|
-
}).strict();
|
5088
|
-
var indexV6 = objectType({
|
5089
|
-
name: stringType(),
|
5090
|
-
columns: stringType().array(),
|
5091
|
-
isUnique: booleanType(),
|
5092
|
-
with: recordType(stringType(), stringType()).optional(),
|
5093
|
-
method: stringType().default("btree"),
|
5094
|
-
where: stringType().optional(),
|
5095
|
-
concurrently: booleanType().default(false)
|
5096
|
-
}).strict();
|
5097
5070
|
var fk2 = objectType({
|
5098
5071
|
name: stringType(),
|
5099
5072
|
tableFrom: stringType(),
|
@@ -5134,27 +5107,9 @@ var tableV42 = objectType({
|
|
5134
5107
|
name: stringType(),
|
5135
5108
|
schema: stringType(),
|
5136
5109
|
columns: recordType(stringType(), column2),
|
5137
|
-
indexes: recordType(stringType(),
|
5110
|
+
indexes: recordType(stringType(), index2),
|
5138
5111
|
foreignKeys: recordType(stringType(), fk2)
|
5139
5112
|
}).strict();
|
5140
|
-
var tableV6 = objectType({
|
5141
|
-
name: stringType(),
|
5142
|
-
schema: stringType(),
|
5143
|
-
columns: recordType(stringType(), column2),
|
5144
|
-
indexes: recordType(stringType(), indexV6),
|
5145
|
-
foreignKeys: recordType(stringType(), fk2),
|
5146
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5147
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5148
|
-
}).strict();
|
5149
|
-
var tableV5 = objectType({
|
5150
|
-
name: stringType(),
|
5151
|
-
schema: stringType(),
|
5152
|
-
columns: recordType(stringType(), column2),
|
5153
|
-
indexes: recordType(stringType(), indexV5),
|
5154
|
-
foreignKeys: recordType(stringType(), fk2),
|
5155
|
-
compositePrimaryKeys: recordType(stringType(), compositePK2),
|
5156
|
-
uniqueConstraints: recordType(stringType(), uniqueConstraint2).default({})
|
5157
|
-
}).strict();
|
5158
5113
|
var table2 = objectType({
|
5159
5114
|
name: stringType(),
|
5160
5115
|
schema: stringType(),
|
@@ -5199,7 +5154,7 @@ var pgSchemaInternalV4 = objectType({
|
|
5199
5154
|
var pgSchemaInternalV5 = objectType({
|
5200
5155
|
version: literalType("5"),
|
5201
5156
|
dialect: literalType("pg"),
|
5202
|
-
tables: recordType(stringType(),
|
5157
|
+
tables: recordType(stringType(), table2),
|
5203
5158
|
enums: recordType(stringType(), enumSchemaV1),
|
5204
5159
|
schemas: recordType(stringType(), stringType()),
|
5205
5160
|
_meta: objectType({
|
@@ -5209,19 +5164,6 @@ var pgSchemaInternalV5 = objectType({
|
|
5209
5164
|
}),
|
5210
5165
|
internal: kitInternals2
|
5211
5166
|
}).strict();
|
5212
|
-
var pgSchemaInternalV6 = objectType({
|
5213
|
-
version: literalType("6"),
|
5214
|
-
dialect: literalType("postgresql"),
|
5215
|
-
tables: recordType(stringType(), tableV6),
|
5216
|
-
enums: recordType(stringType(), enumSchema),
|
5217
|
-
schemas: recordType(stringType(), stringType()),
|
5218
|
-
_meta: objectType({
|
5219
|
-
schemas: recordType(stringType(), stringType()),
|
5220
|
-
tables: recordType(stringType(), stringType()),
|
5221
|
-
columns: recordType(stringType(), stringType())
|
5222
|
-
}),
|
5223
|
-
internal: kitInternals2
|
5224
|
-
}).strict();
|
5225
5167
|
var pgSchemaExternal = objectType({
|
5226
5168
|
version: literalType("5"),
|
5227
5169
|
dialect: literalType("pg"),
|
@@ -5235,7 +5177,7 @@ var pgSchemaExternal = objectType({
|
|
5235
5177
|
})
|
5236
5178
|
}).strict();
|
5237
5179
|
var pgSchemaInternal = objectType({
|
5238
|
-
version: literalType("
|
5180
|
+
version: literalType("6"),
|
5239
5181
|
dialect: literalType("postgresql"),
|
5240
5182
|
tables: recordType(stringType(), table2),
|
5241
5183
|
enums: recordType(stringType(), enumSchema),
|
@@ -5270,15 +5212,8 @@ var pgSchemaSquashedV4 = objectType({
|
|
5270
5212
|
enums: recordType(stringType(), enumSchemaV1),
|
5271
5213
|
schemas: recordType(stringType(), stringType())
|
5272
5214
|
}).strict();
|
5273
|
-
var pgSchemaSquashedV6 = objectType({
|
5274
|
-
version: literalType("6"),
|
5275
|
-
dialect: literalType("postgresql"),
|
5276
|
-
tables: recordType(stringType(), tableSquashed2),
|
5277
|
-
enums: recordType(stringType(), enumSchema),
|
5278
|
-
schemas: recordType(stringType(), stringType())
|
5279
|
-
}).strict();
|
5280
5215
|
var pgSchemaSquashed = objectType({
|
5281
|
-
version: literalType("
|
5216
|
+
version: literalType("6"),
|
5282
5217
|
dialect: literalType("postgresql"),
|
5283
5218
|
tables: recordType(stringType(), tableSquashed2),
|
5284
5219
|
enums: recordType(stringType(), enumSchema),
|
@@ -5287,13 +5222,8 @@ var pgSchemaSquashed = objectType({
|
|
5287
5222
|
var pgSchemaV3 = pgSchemaInternalV3.merge(schemaHash2);
|
5288
5223
|
var pgSchemaV4 = pgSchemaInternalV4.merge(schemaHash2);
|
5289
5224
|
var pgSchemaV5 = pgSchemaInternalV5.merge(schemaHash2);
|
5290
|
-
var pgSchemaV6 = pgSchemaInternalV6.merge(schemaHash2);
|
5291
5225
|
var pgSchema = pgSchemaInternal.merge(schemaHash2);
|
5292
|
-
var backwardCompatiblePgSchema = unionType([
|
5293
|
-
pgSchemaV5,
|
5294
|
-
pgSchemaV6,
|
5295
|
-
pgSchema
|
5296
|
-
]);
|
5226
|
+
var backwardCompatiblePgSchema = unionType([pgSchemaV5, pgSchema]);
|
5297
5227
|
var dryPg = pgSchema.parse({
|
5298
5228
|
version: snapshotVersion,
|
5299
5229
|
dialect: "postgresql",
|
@@ -5471,7 +5401,7 @@ var prepareOutFolder = (out, dialect3) => {
|
|
5471
5401
|
var validatorForDialect = (dialect3) => {
|
5472
5402
|
switch (dialect3) {
|
5473
5403
|
case "postgresql":
|
5474
|
-
return { validator: backwardCompatiblePgSchema, version:
|
5404
|
+
return { validator: backwardCompatiblePgSchema, version: 6 };
|
5475
5405
|
case "sqlite":
|
5476
5406
|
return { validator: backwardCompatibleSqliteSchema, version: 6 };
|
5477
5407
|
case "mysql":
|