@mikro-orm/postgresql 6.3.13-dev.8 → 6.3.13
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.
|
@@ -109,6 +109,7 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
|
|
|
109
109
|
column_default,
|
|
110
110
|
is_nullable,
|
|
111
111
|
udt_name,
|
|
112
|
+
udt_schema,
|
|
112
113
|
coalesce(datetime_precision, character_maximum_length) length,
|
|
113
114
|
atttypmod custom_length,
|
|
114
115
|
numeric_precision,
|
|
@@ -134,6 +135,9 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
|
|
|
134
135
|
let type = col.data_type.toLowerCase() === 'array'
|
|
135
136
|
? col.udt_name.replace(/^_(.*)$/, '$1[]')
|
|
136
137
|
: col.udt_name;
|
|
138
|
+
if (col.data_type === 'USER-DEFINED' && col.udt_schema && col.udt_schema !== this.platform.getDefaultSchemaName()) {
|
|
139
|
+
type = `${col.udt_schema}.${type}`;
|
|
140
|
+
}
|
|
137
141
|
if (type === 'bpchar') {
|
|
138
142
|
type = 'char';
|
|
139
143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
|
-
"version": "6.3.13
|
|
3
|
+
"version": "6.3.13",
|
|
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,16 +58,16 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "6.3.13
|
|
61
|
+
"@mikro-orm/knex": "6.3.13",
|
|
62
62
|
"pg": "8.13.0",
|
|
63
63
|
"postgres-array": "3.0.2",
|
|
64
64
|
"postgres-date": "2.1.0",
|
|
65
65
|
"postgres-interval": "4.0.2"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@mikro-orm/core": "^6.3.
|
|
68
|
+
"@mikro-orm/core": "^6.3.13"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "6.
|
|
71
|
+
"@mikro-orm/core": "^6.0.0"
|
|
72
72
|
}
|
|
73
73
|
}
|