@mikro-orm/migrations 6.3.11-dev.2 → 6.3.11-dev.20

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/Migrator.js CHANGED
@@ -102,11 +102,11 @@ class Migrator {
102
102
  migrations,
103
103
  });
104
104
  if (!this.options.silent) {
105
- const logger = this.config.get('logger');
106
- this.umzug.on('migrating', event => logger(`Processing '${event.name}'`));
107
- this.umzug.on('migrated', event => logger(`Applied '${event.name}'`));
108
- this.umzug.on('reverting', event => logger(`Processing '${event.name}'`));
109
- this.umzug.on('reverted', event => logger(`Reverted '${event.name}'`));
105
+ const logger = this.config.getLogger();
106
+ this.umzug.on('migrating', event => logger.log('migrator', `Processing '${event.name}'`, { enabled: true }));
107
+ this.umzug.on('migrated', event => logger.log('migrator', `Applied '${event.name}'`, { enabled: true }));
108
+ this.umzug.on('reverting', event => logger.log('migrator', `Processing '${event.name}'`, { enabled: true }));
109
+ this.umzug.on('reverted', event => logger.log('migrator', `Reverted '${event.name}'`, { enabled: true }));
110
110
  }
111
111
  if (this.options.generator) {
112
112
  this.generator = new this.options.generator(this.driver, this.config.getNamingStrategy(), this.options);
package/README.md CHANGED
@@ -164,6 +164,7 @@ You can find example integrations for some popular frameworks in the [`mikro-orm
164
164
  - [Accounts.js REST and GraphQL authentication + SQLite](https://github.com/darkbasic/mikro-orm-accounts-example)
165
165
  - [Nest + Shopify + PostgreSQL + GraphQL](https://github.com/Cloudshelf/Shopify_CSConnector)
166
166
  - [Elysia.js + libSQL + Bun](https://github.com/mikro-orm/elysia-bun-example-app)
167
+ - [Electron.js + PostgreSQL](https://github.com/adnanlah/electron-mikro-orm-example-app)
167
168
 
168
169
  ### JavaScript Examples
169
170
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/migrations",
3
- "version": "6.3.11-dev.2",
3
+ "version": "6.3.11-dev.20",
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.11-dev.2",
61
+ "@mikro-orm/knex": "6.3.11-dev.20",
62
62
  "fs-extra": "11.2.0",
63
- "umzug": "3.8.1"
63
+ "umzug": "3.8.2"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@mikro-orm/core": "^6.3.10"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.3.11-dev.2"
69
+ "@mikro-orm/core": "6.3.11-dev.20"
70
70
  }
71
71
  }