@mikro-orm/postgresql 6.2.10-dev.67 → 6.2.10-dev.69
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.
|
@@ -275,7 +275,7 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
|
|
|
275
275
|
const m1 = item.definition?.match(/check \(\(\("?(\w+)"?\)::/i) || item.definition?.match(/check \(\("?(\w+)"? = /i);
|
|
276
276
|
const m2 = item.definition?.match(/\(array\[(.*)]\)/i) || item.definition?.match(/ = (.*)\)/i);
|
|
277
277
|
if (item.columnName && m1 && m2) {
|
|
278
|
-
const m3 = m2[1].match(/('[^']
|
|
278
|
+
const m3 = m2[1].match(/('[^']*'::text)/g);
|
|
279
279
|
let items;
|
|
280
280
|
/* istanbul ignore else */
|
|
281
281
|
if (m3) {
|
|
@@ -284,7 +284,7 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
|
|
|
284
284
|
else {
|
|
285
285
|
items = m2[1].split(',').map((item) => item.trim().match(/^\(?'(.*)'/)?.[1]);
|
|
286
286
|
}
|
|
287
|
-
items = items.filter(
|
|
287
|
+
items = items.filter(item => item !== undefined);
|
|
288
288
|
if (items.length > 0) {
|
|
289
289
|
o[item.columnName] = items;
|
|
290
290
|
found.push(index);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
|
-
"version": "6.2.10-dev.
|
|
3
|
+
"version": "6.2.10-dev.69",
|
|
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.2.10-dev.
|
|
61
|
+
"@mikro-orm/knex": "6.2.10-dev.69",
|
|
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.2.9"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "6.2.10-dev.
|
|
71
|
+
"@mikro-orm/core": "6.2.10-dev.69"
|
|
72
72
|
}
|
|
73
73
|
}
|