@mikro-orm/migrations 6.3.13-dev.9 → 6.3.14-dev.0

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.
Files changed (2) hide show
  1. package/Migrator.js +6 -1
  2. package/package.json +4 -4
package/Migrator.js CHANGED
@@ -94,7 +94,12 @@ class Migrator {
94
94
  resolve: (params) => this.resolve(params),
95
95
  };
96
96
  if (this.options.migrationsList) {
97
- migrations = this.options.migrationsList.map(migration => this.initialize(migration.class, migration.name));
97
+ migrations = this.options.migrationsList.map(migration => {
98
+ if (typeof migration === 'function') {
99
+ return this.initialize(migration, migration.name);
100
+ }
101
+ return this.initialize(migration.class, migration.name);
102
+ });
98
103
  }
99
104
  this.umzug = new umzug_1.Umzug({
100
105
  storage: this.storage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/migrations",
3
- "version": "6.3.13-dev.9",
3
+ "version": "6.3.14-dev.0",
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,14 +58,14 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "6.3.13-dev.9",
61
+ "@mikro-orm/knex": "6.3.14-dev.0",
62
62
  "fs-extra": "11.2.0",
63
63
  "umzug": "3.8.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@mikro-orm/core": "^6.3.12"
66
+ "@mikro-orm/core": "^6.3.13"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.3.13-dev.9"
69
+ "@mikro-orm/core": "6.3.14-dev.0"
70
70
  }
71
71
  }