diff --git a/framework/src/controller/migrations/index.js b/framework/src/controller/migrations/index.js index bd7012fecb5..76e97ccfbc8 100644 --- a/framework/src/controller/migrations/index.js +++ b/framework/src/controller/migrations/index.js @@ -14,7 +14,7 @@ 'use strict'; -const MigrationEntity = require('./migration'); +const MigrationEntity = require('./migration_entity'); module.exports = { MigrationEntity, diff --git a/framework/src/controller/migrations/migration.js b/framework/src/controller/migrations/migration_entity.js similarity index 99% rename from framework/src/controller/migrations/migration.js rename to framework/src/controller/migrations/migration_entity.js index 66219291c51..d16fc5d3ee1 100644 --- a/framework/src/controller/migrations/migration.js +++ b/framework/src/controller/migrations/migration_entity.js @@ -62,7 +62,7 @@ const sqlFiles = { * @property {string} [namespace_like] */ -class Migration extends BaseEntity { +class MigrationEntity extends BaseEntity { /** * Constructor * @param {BaseAdapter} adapter - Adapter to retrieve the data from @@ -308,4 +308,4 @@ class Migration extends BaseEntity { } } -module.exports = Migration; +module.exports = MigrationEntity; diff --git a/framework/test/mocha/unit/modules/chain/components/storage/entities/migration.js b/framework/test/mocha/unit/modules/chain/components/storage/entities/migration.js index ea2d708bc3d..efde69133c9 100644 --- a/framework/test/mocha/unit/modules/chain/components/storage/entities/migration.js +++ b/framework/test/mocha/unit/modules/chain/components/storage/entities/migration.js @@ -114,7 +114,9 @@ describe('Migration', () => { it('should be a constructable function', async () => { expect(MigrationEntity.prototype.constructor).not.to.be.null; - expect(MigrationEntity.prototype.constructor.name).to.be.eql('Migration'); + expect(MigrationEntity.prototype.constructor.name).to.be.eql( + 'MigrationEntity' + ); }); it('should extend BaseEntity', async () => {