drizzle-kit 0.23.1-0be85c4 → 0.23.1-7816536
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.cjs +3 -0
- package/package.json +1 -1
- package/payload.js +2 -0
- package/payload.mjs +2 -0
package/bin.cjs
CHANGED
@@ -18793,6 +18793,7 @@ ${withStyle.errorWarning(
|
|
18793
18793
|
cache: cacheSize
|
18794
18794
|
};
|
18795
18795
|
}
|
18796
|
+
const whereEnums = schemaFilters.map((t2) => `n.nspname = '${t2}'`).join(" or ");
|
18796
18797
|
const allEnums = await db2.query(
|
18797
18798
|
`select n.nspname as enum_schema,
|
18798
18799
|
t.typname as enum_name,
|
@@ -18801,6 +18802,7 @@ ${withStyle.errorWarning(
|
|
18801
18802
|
from pg_type t
|
18802
18803
|
join pg_enum e on t.oid = e.enumtypid
|
18803
18804
|
join pg_catalog.pg_namespace n ON n.oid = t.typnamespace
|
18805
|
+
${whereEnums === "" ? "" : ` WHERE ${whereEnums}`}
|
18804
18806
|
order by enum_schema, enum_name, sort_order;`
|
18805
18807
|
);
|
18806
18808
|
const enumsToReturn = {};
|
@@ -127772,6 +127774,7 @@ var updateUpToV7 = (json) => {
|
|
127772
127774
|
...schema5,
|
127773
127775
|
version: "7",
|
127774
127776
|
dialect: "postgresql",
|
127777
|
+
sequences: {},
|
127775
127778
|
tables
|
127776
127779
|
};
|
127777
127780
|
};
|
package/package.json
CHANGED
package/payload.js
CHANGED
@@ -16964,6 +16964,7 @@ ${withStyle.errorWarning(
|
|
16964
16964
|
cache: cacheSize
|
16965
16965
|
};
|
16966
16966
|
}
|
16967
|
+
const whereEnums = schemaFilters.map((t) => `n.nspname = '${t}'`).join(" or ");
|
16967
16968
|
const allEnums = await db.query(
|
16968
16969
|
`select n.nspname as enum_schema,
|
16969
16970
|
t.typname as enum_name,
|
@@ -16972,6 +16973,7 @@ ${withStyle.errorWarning(
|
|
16972
16973
|
from pg_type t
|
16973
16974
|
join pg_enum e on t.oid = e.enumtypid
|
16974
16975
|
join pg_catalog.pg_namespace n ON n.oid = t.typnamespace
|
16976
|
+
${whereEnums === "" ? "" : ` WHERE ${whereEnums}`}
|
16975
16977
|
order by enum_schema, enum_name, sort_order;`
|
16976
16978
|
);
|
16977
16979
|
const enumsToReturn = {};
|
package/payload.mjs
CHANGED
@@ -16970,6 +16970,7 @@ ${withStyle.errorWarning(
|
|
16970
16970
|
cache: cacheSize
|
16971
16971
|
};
|
16972
16972
|
}
|
16973
|
+
const whereEnums = schemaFilters.map((t) => `n.nspname = '${t}'`).join(" or ");
|
16973
16974
|
const allEnums = await db.query(
|
16974
16975
|
`select n.nspname as enum_schema,
|
16975
16976
|
t.typname as enum_name,
|
@@ -16978,6 +16979,7 @@ ${withStyle.errorWarning(
|
|
16978
16979
|
from pg_type t
|
16979
16980
|
join pg_enum e on t.oid = e.enumtypid
|
16980
16981
|
join pg_catalog.pg_namespace n ON n.oid = t.typnamespace
|
16982
|
+
${whereEnums === "" ? "" : ` WHERE ${whereEnums}`}
|
16981
16983
|
order by enum_schema, enum_name, sort_order;`
|
16982
16984
|
);
|
16983
16985
|
const enumsToReturn = {};
|