drizzle-kit 0.21.2-1ddc155 → 0.21.2-3abb478
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +2 -3
- package/package.json +1 -1
- package/payload.js +4 -5
- package/payload.mjs +4 -5
- package/utils-studio.js +1 -1
- package/utils-studio.mjs +1 -1
package/bin.cjs
CHANGED
@@ -16185,7 +16185,7 @@ ${withStyle.errorWarning(
|
|
16185
16185
|
}
|
16186
16186
|
}
|
16187
16187
|
const dbIndexes = await db2.query(
|
16188
|
-
`SELECT
|
16188
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
16189
16189
|
k.i AS index_order,
|
16190
16190
|
i.indisunique as is_unique,
|
16191
16191
|
am.amname as method,
|
@@ -22397,8 +22397,7 @@ var init_migrate = __esm({
|
|
22397
22397
|
tablesResolver,
|
22398
22398
|
columnsResolver,
|
22399
22399
|
validatedPrev,
|
22400
|
-
validatedCur
|
22401
|
-
"push"
|
22400
|
+
validatedCur
|
22402
22401
|
);
|
22403
22402
|
return { sqlStatements, statements, squashedPrev, squashedCur };
|
22404
22403
|
};
|
package/package.json
CHANGED
package/payload.js
CHANGED
@@ -9544,7 +9544,7 @@ ${withStyle.errorWarning(
|
|
9544
9544
|
}
|
9545
9545
|
}
|
9546
9546
|
const dbIndexes = await db.query(
|
9547
|
-
`SELECT
|
9547
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
9548
9548
|
k.i AS index_order,
|
9549
9549
|
i.indisunique as is_unique,
|
9550
9550
|
am.amname as method,
|
@@ -24658,8 +24658,8 @@ var pushSchema = async (imports, drizzleInstance) => {
|
|
24658
24658
|
const { schema: prev } = await pgPushIntrospect(db, [], ["public"]);
|
24659
24659
|
const validatedPrev = pgSchema.parse(prev);
|
24660
24660
|
const validatedCur = pgSchema.parse(cur);
|
24661
|
-
const squashedPrev = squashPgScheme(validatedPrev
|
24662
|
-
const squashedCur = squashPgScheme(validatedCur
|
24661
|
+
const squashedPrev = squashPgScheme(validatedPrev);
|
24662
|
+
const squashedCur = squashPgScheme(validatedCur);
|
24663
24663
|
const { statements } = await applyPgSnapshotsDiff2(
|
24664
24664
|
squashedPrev,
|
24665
24665
|
squashedCur,
|
@@ -24668,8 +24668,7 @@ var pushSchema = async (imports, drizzleInstance) => {
|
|
24668
24668
|
tablesResolver,
|
24669
24669
|
columnsResolver,
|
24670
24670
|
validatedPrev,
|
24671
|
-
validatedCur
|
24672
|
-
"push"
|
24671
|
+
validatedCur
|
24673
24672
|
);
|
24674
24673
|
const { shouldAskForApprove, statementsToExecute, infoToPrint } = await pgSuggestions(db, statements);
|
24675
24674
|
return {
|
package/payload.mjs
CHANGED
@@ -9584,7 +9584,7 @@ ${withStyle.errorWarning(
|
|
9584
9584
|
}
|
9585
9585
|
}
|
9586
9586
|
const dbIndexes = await db.query(
|
9587
|
-
`SELECT
|
9587
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
9588
9588
|
k.i AS index_order,
|
9589
9589
|
i.indisunique as is_unique,
|
9590
9590
|
am.amname as method,
|
@@ -24695,8 +24695,8 @@ var pushSchema = async (imports, drizzleInstance) => {
|
|
24695
24695
|
const { schema: prev } = await pgPushIntrospect(db, [], ["public"]);
|
24696
24696
|
const validatedPrev = pgSchema.parse(prev);
|
24697
24697
|
const validatedCur = pgSchema.parse(cur);
|
24698
|
-
const squashedPrev = squashPgScheme(validatedPrev
|
24699
|
-
const squashedCur = squashPgScheme(validatedCur
|
24698
|
+
const squashedPrev = squashPgScheme(validatedPrev);
|
24699
|
+
const squashedCur = squashPgScheme(validatedCur);
|
24700
24700
|
const { statements } = await applyPgSnapshotsDiff2(
|
24701
24701
|
squashedPrev,
|
24702
24702
|
squashedCur,
|
@@ -24705,8 +24705,7 @@ var pushSchema = async (imports, drizzleInstance) => {
|
|
24705
24705
|
tablesResolver,
|
24706
24706
|
columnsResolver,
|
24707
24707
|
validatedPrev,
|
24708
|
-
validatedCur
|
24709
|
-
"push"
|
24708
|
+
validatedCur
|
24710
24709
|
);
|
24711
24710
|
const { shouldAskForApprove, statementsToExecute, infoToPrint } = await pgSuggestions(db, statements);
|
24712
24711
|
return {
|
package/utils-studio.js
CHANGED
@@ -5734,7 +5734,7 @@ var init_pgSerializer = __esm({
|
|
5734
5734
|
}
|
5735
5735
|
}
|
5736
5736
|
const dbIndexes = await db.query(
|
5737
|
-
`SELECT
|
5737
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
5738
5738
|
k.i AS index_order,
|
5739
5739
|
i.indisunique as is_unique,
|
5740
5740
|
am.amname as method,
|
package/utils-studio.mjs
CHANGED
@@ -5743,7 +5743,7 @@ var init_pgSerializer = __esm({
|
|
5743
5743
|
}
|
5744
5744
|
}
|
5745
5745
|
const dbIndexes = await db.query(
|
5746
|
-
`SELECT
|
5746
|
+
`SELECT t.relname as table_name, ic.relname AS indexname,
|
5747
5747
|
k.i AS index_order,
|
5748
5748
|
i.indisunique as is_unique,
|
5749
5749
|
am.amname as method,
|