From 71d66a2d852910ef2d35adf8ba18474083fa1bd9 Mon Sep 17 00:00:00 2001 From: zeroxbt <89495162+zeroxbt@users.noreply.github.com> Date: Wed, 7 Dec 2022 00:18:12 +0100 Subject: [PATCH 1/2] fix migration not saved to file (#2234) --- ot-node.js | 2 ++ src/migration/clean-operational-database-migration.js | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ot-node.js b/ot-node.js index bb550dce49..5791c223b7 100644 --- a/ot-node.js +++ b/ot-node.js @@ -381,6 +381,8 @@ class OTNode { ); if (!(await cleanOperationalDatabaseMigration.migrationAlreadyExecuted())) { await cleanOperationalDatabaseMigration.migrate(); + this.logger.info('Operational database cleanup completed. Node will now restart!'); + process.exit(1); } } diff --git a/src/migration/clean-operational-database-migration.js b/src/migration/clean-operational-database-migration.js index 8704f5f23d..61200bfcdb 100644 --- a/src/migration/clean-operational-database-migration.js +++ b/src/migration/clean-operational-database-migration.js @@ -10,8 +10,6 @@ class CleanOperationalDatabaseMigration extends BaseMigration { if (process.env.NODE_ENV !== 'development' && process.env.NODE_ENV !== 'test') { this.logger.info('Dropping old operational database.'); await this.repositoryModuleManager.dropDatabase(); - this.logger.info('Operational database cleanup completed. Node will now restart!'); - process.exit(0); } } } From 3b8b84f140790d9f2ee3fad4335811342d1ec334 Mon Sep 17 00:00:00 2001 From: zeroxbt <89495162+zeroxbt@users.noreply.github.com> Date: Wed, 7 Dec 2022 00:20:42 +0100 Subject: [PATCH 2/2] bump version (#2235) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6b97a82fbb..9691dec934 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "origintrail_node", - "version": "6.0.0-beta.3.1.0", + "version": "6.0.0-beta.3.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "origintrail_node", - "version": "6.0.0-beta.3.1.0", + "version": "6.0.0-beta.3.1.1", "license": "ISC", "dependencies": { "@comunica/query-sparql": "^2.4.3", diff --git a/package.json b/package.json index 2ae527f099..87cf4e38e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "origintrail_node", - "version": "6.0.0-beta.3.1.0", + "version": "6.0.0-beta.3.1.1", "description": "OTNode v6 Beta 2", "main": "index.js", "type": "module",