@mikro-orm/knex 6.0.0-dev.296 → 6.0.0-dev.297

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/knex",
3
- "version": "6.0.0-dev.296",
3
+ "version": "6.0.0-dev.297",
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",
@@ -66,6 +66,6 @@
66
66
  "@mikro-orm/core": "^5.0.0"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.0.0-dev.296"
69
+ "@mikro-orm/core": "6.0.0-dev.297"
70
70
  }
71
71
  }
@@ -609,6 +609,7 @@ class DatabaseTable {
609
609
  if (meta.properties[root]) {
610
610
  return [prop.replace(root, meta.properties[root].fieldNames[0])];
611
611
  }
612
+ /* istanbul ignore next */
612
613
  return [prop];
613
614
  })));
614
615
  if (properties.length === 0 && !index.expression) {
@@ -450,6 +450,7 @@ class SchemaComparator {
450
450
  return simplify(expr1) !== simplify(expr2);
451
451
  }
452
452
  parseJsonDefault(defaultValue) {
453
+ /* istanbul ignore next */
453
454
  if (!defaultValue) {
454
455
  return null;
455
456
  }
@@ -78,6 +78,7 @@ class SchemaHelper {
78
78
  return `alter table ${tableReference} rename column ${oldColumnName} to ${columnName}`;
79
79
  }
80
80
  getCreateIndexSQL(tableName, index, partialExpression = false) {
81
+ /* istanbul ignore next */
81
82
  if (index.expression && !partialExpression) {
82
83
  return index.expression;
83
84
  }