@mikro-orm/knex 6.1.4-dev.3 → 6.1.4-dev.4

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.1.4-dev.3",
3
+ "version": "6.1.4-dev.4",
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": "^6.1.3"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.1.4-dev.3"
69
+ "@mikro-orm/core": "6.1.4-dev.4"
70
70
  }
71
71
  }
@@ -479,6 +479,7 @@ class DatabaseTable {
479
479
  const column = this.getColumn(fk.columnNames[0]);
480
480
  columnOptions.default = this.getPropertyDefaultValue(schemaHelper, column, type);
481
481
  columnOptions.defaultRaw = this.getPropertyDefaultValue(schemaHelper, column, type, true);
482
+ columnOptions.generated = column.generated;
482
483
  columnOptions.nullable = column.nullable;
483
484
  columnOptions.primary = column.primary;
484
485
  columnOptions.length = column.length;
@@ -518,6 +519,7 @@ class DatabaseTable {
518
519
  name: prop,
519
520
  type,
520
521
  kind,
522
+ generated: column.generated,
521
523
  columnType: column.type,
522
524
  default: this.getPropertyDefaultValue(schemaHelper, column, type),
523
525
  defaultRaw: this.getPropertyDefaultValue(schemaHelper, column, type, true),