@mikro-orm/sql 7.2.3-dev.13 → 7.2.3-dev.15
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/sql",
|
|
3
|
-
"version": "7.2.3-dev.
|
|
3
|
+
"version": "7.2.3-dev.15",
|
|
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
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@mikro-orm/core": "^7.2.2"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@mikro-orm/core": "7.2.3-dev.
|
|
56
|
+
"@mikro-orm/core": "7.2.3-dev.15"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">= 22.17.0"
|
|
@@ -479,8 +479,10 @@ export class SchemaComparator {
|
|
|
479
479
|
if (!this.diffExpression(check.expression, toTableCheck.expression)) {
|
|
480
480
|
continue;
|
|
481
481
|
}
|
|
482
|
+
// only auto-generated enum checks, a user check tagged with an enum column must be diffed by expression
|
|
482
483
|
if (fromColumn?.enumItems &&
|
|
483
484
|
toColumn?.enumItems &&
|
|
485
|
+
check.name === this.#platform.getIndexName(fromTable.name, [fromColumn.name], 'check') &&
|
|
484
486
|
!this.diffEnumItems(fromColumn.enumItems, toColumn.enumItems)) {
|
|
485
487
|
continue;
|
|
486
488
|
}
|
|
@@ -909,6 +911,7 @@ export class SchemaComparator {
|
|
|
909
911
|
?.replace(/(?<![\w'])_\w+'(.*?)'/g, '$1')
|
|
910
912
|
.replace(/!=/g, '<>')
|
|
911
913
|
// `\b` keeps this from firing inside identifiers like `min(...)`
|
|
914
|
+
.replace(/\bnot\s+in\s*\((.*?)\)/gi, '<> all (array[$1])')
|
|
912
915
|
.replace(/\bin\s*\((.*?)\)/gi, '= any (array[$1])')
|
|
913
916
|
// MySQL normalizes count(*) to count(0)
|
|
914
917
|
.replace(/\bcount\s*\(\s*0\s*\)/gi, 'count(*)')
|