@mikro-orm/postgresql 6.4.13-dev.1 → 6.4.13-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.
@@ -356,6 +356,12 @@ class PostgreSqlSchemaHelper extends knex_1.SchemaHelper {
356
356
  if (changedProperties.has('type')) {
357
357
  return table.specificType(column.name, column.type);
358
358
  }
359
+ if (changedProperties.has('default')) {
360
+ return column.default ? table.specificType(column.name, column.type).defaultTo(column.default) : table.specificType(column.name, column.type);
361
+ }
362
+ if (changedProperties.has('nullable')) {
363
+ return column.nullable ? table.specificType(column.name, column.type).nullable() : table.specificType(column.name, column.type).notNullable();
364
+ }
359
365
  return undefined;
360
366
  }
361
367
  if (column.mappedType instanceof core_1.EnumType && column.enumItems?.every(item => core_1.Utils.isString(item))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/postgresql",
3
- "version": "6.4.13-dev.1",
3
+ "version": "6.4.13-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
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -58,7 +58,7 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "6.4.13-dev.1",
61
+ "@mikro-orm/knex": "6.4.13-dev.10",
62
62
  "pg": "8.14.1",
63
63
  "postgres-array": "3.0.4",
64
64
  "postgres-date": "2.1.0",
@@ -68,6 +68,6 @@
68
68
  "@mikro-orm/core": "^6.4.12"
69
69
  },
70
70
  "peerDependencies": {
71
- "@mikro-orm/core": "6.4.13-dev.1"
71
+ "@mikro-orm/core": "6.4.13-dev.10"
72
72
  }
73
73
  }