@mikro-orm/sql
Advanced tools
+2
-2
| { | ||
| "name": "@mikro-orm/sql", | ||
| "version": "7.1.14-dev.0", | ||
| "version": "7.1.14-dev.1", | ||
| "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.", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.1.14-dev.0" | ||
| "@mikro-orm/core": "7.1.14-dev.1" | ||
| }, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -966,9 +966,9 @@ import { ArrayType, BooleanType, DateTimeType, DecimalType, inspect, JsonType, parseJsonSafe, Utils, } from '@mikro-orm/core'; | ||
| // Raw DDL expression cannot be meaningfully compared to introspected | ||
| // trigger metadata, so skip diffing when the metadata side uses it. | ||
| if (to.expression) { | ||
| // trigger metadata, so it needs special handling when either side uses it. | ||
| if (from.expression || to.expression) { | ||
| // Both sides have expression — compare the raw DDL directly | ||
| if (from.expression) { | ||
| if (from.expression && to.expression) { | ||
| return this.diffExpression(from.expression, to.expression); | ||
| } | ||
| // Only metadata side has expression — the raw DDL cannot be compared to | ||
| // Only one side has expression — the raw DDL cannot be compared to | ||
| // introspected metadata. Changes to the expression value won't be detected; | ||
@@ -975,0 +975,0 @@ // drop and recreate the trigger manually to apply expression changes. |
1084407
0