@mikro-orm/migrations 7.1.8-dev.11 → 7.1.8-dev.13

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 +2 -1
  2. package/package.json +3 -3
package/Migrator.js CHANGED
@@ -151,7 +151,8 @@ export class Migrator extends AbstractMigrator {
151
151
  const result = await super.runMigrations(method, options);
152
152
  if (result.length > 0 && this.options.snapshot) {
153
153
  const ctx = Utils.isObject(options) ? options.transaction : undefined;
154
- const schema = await DatabaseSchema.create(this.em.getConnection(), this.em.getPlatform(), this.config, undefined, undefined, undefined, undefined, undefined, ctx);
154
+ const { skipTables, skipViews } = this.config.get('schemaGenerator');
155
+ const schema = await DatabaseSchema.create(this.em.getConnection(), this.em.getPlatform(), this.config, undefined, undefined, undefined, skipTables, skipViews, ctx);
155
156
  // keep the snapshot authored by `migration:create` when the migrated DB still matches it
156
157
  // semantically — rewriting it from introspection only churns cosmetic serialization noise
157
158
  // (expression casing/reformatting, native-enum mapped type, index method, ...) into the diff
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/migrations",
3
- "version": "7.1.8-dev.11",
3
+ "version": "7.1.8-dev.13",
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
  "keywords": [
6
6
  "data-mapper",
@@ -47,13 +47,13 @@
47
47
  "copy": "node ../../scripts/copy.mjs"
48
48
  },
49
49
  "dependencies": {
50
- "@mikro-orm/sql": "7.1.8-dev.11"
50
+ "@mikro-orm/sql": "7.1.8-dev.13"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@mikro-orm/core": "^7.1.7"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.1.8-dev.11"
56
+ "@mikro-orm/core": "7.1.8-dev.13"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"