@mikro-orm/sql 7.0.11-dev.1 → 7.0.11-dev.10

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.0.11-dev.1",
3
+ "version": "7.0.11-dev.10",
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",
@@ -47,13 +47,13 @@
47
47
  "copy": "node ../../scripts/copy.mjs"
48
48
  },
49
49
  "dependencies": {
50
- "kysely": "0.28.15"
50
+ "kysely": "0.28.16"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@mikro-orm/core": "^7.0.10"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.0.11-dev.1"
56
+ "@mikro-orm/core": "7.0.11-dev.10"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"
@@ -516,9 +516,9 @@ export class SchemaComparator {
516
516
  log(`'comment' changed for column ${fromTable.name}.${fromColumn.name}`, { fromColumn, toColumn });
517
517
  changedProperties.add('comment');
518
518
  }
519
- if (!(fromColumn.mappedType instanceof ArrayType) &&
520
- !(toColumn.mappedType instanceof ArrayType) &&
521
- this.diffEnumItems(fromColumn.enumItems, toColumn.enumItems)) {
519
+ const isNonNativeEnumArray = !(fromColumn.nativeEnumName || toColumn.nativeEnumName) &&
520
+ (fromColumn.mappedType instanceof ArrayType || toColumn.mappedType instanceof ArrayType);
521
+ if (!isNonNativeEnumArray && this.diffEnumItems(fromColumn.enumItems, toColumn.enumItems)) {
522
522
  log(`'enumItems' changed for column ${fromTable.name}.${fromColumn.name}`, { fromColumn, toColumn });
523
523
  changedProperties.add('enumItems');
524
524
  }
@@ -663,6 +663,7 @@ export class SchemaComparator {
663
663
  const simplify = (str) => {
664
664
  return (str
665
665
  ?.replace(/_\w+'(.*?)'/g, '$1')
666
+ .replace(/!=/g, '<>')
666
667
  .replace(/in\s*\((.*?)\)/gi, '= any (array[$1])')
667
668
  // MySQL normalizes count(*) to count(0)
668
669
  .replace(/\bcount\s*\(\s*0\s*\)/gi, 'count(*)')