@mikro-orm/postgresql 6.3.5-dev.21 → 6.3.5-dev.22
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.
|
@@ -234,12 +234,12 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
|
|
|
234
234
|
}
|
|
235
235
|
async getNativeEnumDefinitions(connection, schemas) {
|
|
236
236
|
const uniqueSchemas = core_1.Utils.unique(schemas);
|
|
237
|
-
const res = await connection.execute(`select t.typname as enum_name,
|
|
237
|
+
const res = await connection.execute(`select t.typname as enum_name, n.nspname as schema_name, array_agg(e.enumlabel order by e.enumsortorder) as enum_value
|
|
238
238
|
from pg_type t
|
|
239
239
|
join pg_enum e on t.oid = e.enumtypid
|
|
240
240
|
join pg_catalog.pg_namespace n on n.oid = t.typnamespace
|
|
241
241
|
where n.nspname in (${Array(uniqueSchemas.length).fill('?').join(', ')})
|
|
242
|
-
group by t.typname`, uniqueSchemas);
|
|
242
|
+
group by t.typname, n.nspname`, uniqueSchemas);
|
|
243
243
|
return res.reduce((o, row) => {
|
|
244
244
|
let name = row.enum_name;
|
|
245
245
|
if (row.schema_name && row.schema_name !== this.platform.getDefaultSchemaName()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
|
-
"version": "6.3.5-dev.
|
|
3
|
+
"version": "6.3.5-dev.22",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "6.3.5-dev.
|
|
61
|
+
"@mikro-orm/knex": "6.3.5-dev.22",
|
|
62
62
|
"pg": "8.12.0",
|
|
63
63
|
"postgres-array": "3.0.2",
|
|
64
64
|
"postgres-date": "2.1.0",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"@mikro-orm/core": "^6.3.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "6.3.5-dev.
|
|
71
|
+
"@mikro-orm/core": "6.3.5-dev.22"
|
|
72
72
|
}
|
|
73
73
|
}
|