drizzle-kit 0.23.0-4fa9580 → 0.23.0-792e59f
Sign up to get free protection for your applications and to get access to all the features.
- package/bin.cjs +8 -2
- package/package.json +1 -1
- package/payload.js +8 -2
- package/payload.mjs +8 -2
package/bin.cjs
CHANGED
@@ -11183,7 +11183,12 @@ var init_common = __esm({
|
|
11183
11183
|
configMigrations = objectType({
|
11184
11184
|
table: stringType().optional(),
|
11185
11185
|
schema: stringType().optional(),
|
11186
|
-
prefix: unionType([
|
11186
|
+
prefix: unionType([
|
11187
|
+
literalType("index"),
|
11188
|
+
literalType("timestamp"),
|
11189
|
+
literalType("none"),
|
11190
|
+
literalType("supabase")
|
11191
|
+
]).optional().default("index")
|
11187
11192
|
}).optional();
|
11188
11193
|
configCommonSchema = objectType({
|
11189
11194
|
dialect: dialect3,
|
@@ -18768,8 +18773,9 @@ ${withStyle.errorWarning(
|
|
18768
18773
|
let foreignKeysCount = 0;
|
18769
18774
|
let tableCount = 0;
|
18770
18775
|
const sequencesToReturn = {};
|
18776
|
+
const seqWhere = schemaFilters.map((t2) => `schemaname = '${t2}'`).join(" or ");
|
18771
18777
|
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;`
|
18778
|
+
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq${seqWhere === "" ? "" : ` WHERE ${seqWhere}`};`
|
18773
18779
|
);
|
18774
18780
|
for (const dbSeq of allSequences) {
|
18775
18781
|
const schemaName = dbSeq.schemaname;
|
package/package.json
CHANGED
package/payload.js
CHANGED
@@ -16154,7 +16154,12 @@ var init_common2 = __esm({
|
|
16154
16154
|
configMigrations = objectType({
|
16155
16155
|
table: stringType().optional(),
|
16156
16156
|
schema: stringType().optional(),
|
16157
|
-
prefix: unionType([
|
16157
|
+
prefix: unionType([
|
16158
|
+
literalType("index"),
|
16159
|
+
literalType("timestamp"),
|
16160
|
+
literalType("none"),
|
16161
|
+
literalType("supabase")
|
16162
|
+
]).optional().default("index")
|
16158
16163
|
}).optional();
|
16159
16164
|
configCommonSchema = objectType({
|
16160
16165
|
dialect: dialect3,
|
@@ -16939,8 +16944,9 @@ ${withStyle.errorWarning(
|
|
16939
16944
|
let foreignKeysCount = 0;
|
16940
16945
|
let tableCount = 0;
|
16941
16946
|
const sequencesToReturn = {};
|
16947
|
+
const seqWhere = schemaFilters.map((t) => `schemaname = '${t}'`).join(" or ");
|
16942
16948
|
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;`
|
16949
|
+
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq${seqWhere === "" ? "" : ` WHERE ${seqWhere}`};`
|
16944
16950
|
);
|
16945
16951
|
for (const dbSeq of allSequences) {
|
16946
16952
|
const schemaName = dbSeq.schemaname;
|
package/payload.mjs
CHANGED
@@ -16160,7 +16160,12 @@ var init_common2 = __esm({
|
|
16160
16160
|
configMigrations = objectType({
|
16161
16161
|
table: stringType().optional(),
|
16162
16162
|
schema: stringType().optional(),
|
16163
|
-
prefix: unionType([
|
16163
|
+
prefix: unionType([
|
16164
|
+
literalType("index"),
|
16165
|
+
literalType("timestamp"),
|
16166
|
+
literalType("none"),
|
16167
|
+
literalType("supabase")
|
16168
|
+
]).optional().default("index")
|
16164
16169
|
}).optional();
|
16165
16170
|
configCommonSchema = objectType({
|
16166
16171
|
dialect: dialect3,
|
@@ -16945,8 +16950,9 @@ ${withStyle.errorWarning(
|
|
16945
16950
|
let foreignKeysCount = 0;
|
16946
16951
|
let tableCount = 0;
|
16947
16952
|
const sequencesToReturn = {};
|
16953
|
+
const seqWhere = schemaFilters.map((t) => `schemaname = '${t}'`).join(" or ");
|
16948
16954
|
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;`
|
16955
|
+
`select schemaname, sequencename, start_value, min_value, max_value, increment_by, cycle, cache_size from pg_sequences as seq${seqWhere === "" ? "" : ` WHERE ${seqWhere}`};`
|
16950
16956
|
);
|
16951
16957
|
for (const dbSeq of allSequences) {
|
16952
16958
|
const schemaName = dbSeq.schemaname;
|