drizzle-kit 0.23.0-4fa9580 → 0.23.0-b9c41b5
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +2 -1
- package/package.json +1 -1
- package/payload.js +2 -1
- package/payload.mjs +2 -1
package/bin.cjs
CHANGED
@@ -18768,8 +18768,9 @@ ${withStyle.errorWarning(
|
|
18768
18768
|
let foreignKeysCount = 0;
|
18769
18769
|
let tableCount = 0;
|
18770
18770
|
const sequencesToReturn = {};
|
18771
|
+
const seqWhere = schemaFilters.map((t2) => `schemaname = '${t2}'`).join(" or ");
|
18771
18772
|
const allSequences = await db2.query(
|
18772
|
-
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq;`
|
18773
|
+
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq${seqWhere === "" ? "" : ` WHERE ${seqWhere}`};`
|
18773
18774
|
);
|
18774
18775
|
for (const dbSeq of allSequences) {
|
18775
18776
|
const schemaName = dbSeq.schemaname;
|
package/package.json
CHANGED
package/payload.js
CHANGED
@@ -16939,8 +16939,9 @@ ${withStyle.errorWarning(
|
|
16939
16939
|
let foreignKeysCount = 0;
|
16940
16940
|
let tableCount = 0;
|
16941
16941
|
const sequencesToReturn = {};
|
16942
|
+
const seqWhere = schemaFilters.map((t) => `schemaname = '${t}'`).join(" or ");
|
16942
16943
|
const allSequences = await db.query(
|
16943
|
-
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq;`
|
16944
|
+
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq${seqWhere === "" ? "" : ` WHERE ${seqWhere}`};`
|
16944
16945
|
);
|
16945
16946
|
for (const dbSeq of allSequences) {
|
16946
16947
|
const schemaName = dbSeq.schemaname;
|
package/payload.mjs
CHANGED
@@ -16945,8 +16945,9 @@ ${withStyle.errorWarning(
|
|
16945
16945
|
let foreignKeysCount = 0;
|
16946
16946
|
let tableCount = 0;
|
16947
16947
|
const sequencesToReturn = {};
|
16948
|
+
const seqWhere = schemaFilters.map((t) => `schemaname = '${t}'`).join(" or ");
|
16948
16949
|
const allSequences = await db.query(
|
16949
|
-
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq;`
|
16950
|
+
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq${seqWhere === "" ? "" : ` WHERE ${seqWhere}`};`
|
16950
16951
|
);
|
16951
16952
|
for (const dbSeq of allSequences) {
|
16952
16953
|
const schemaName = dbSeq.schemaname;
|