From 11120a376500d07ea9ce8abf98d37ff66bf5dcf0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 30 Jul 2023 11:09:49 -0500 Subject: [PATCH] Update version specific db migration check --- server/Database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/Database.js b/server/Database.js index b9f6998f..bf04529f 100644 --- a/server/Database.js +++ b/server/Database.js @@ -148,10 +148,10 @@ class Database { global.ServerSettings = this.serverSettings.toJSON() // Version specific migrations - if (this.serverSettings.version === '2.3.0' && this.compareVersions(packageJson.version, '2.3.0') > 1) { + if (this.serverSettings.version === '2.3.0' && this.compareVersions(packageJson.version, '2.3.0') == 1) { await dbMigration.migrationPatch(this) } - if (this.serverSettings.version === '2.3.3' && this.compareVersions(packageJson.version, '2.3.3') >= 0) { // TODO: Update to > 1 after 2.3.4 + if (['2.3.0', '2.3.1', '2.3.2', '2.3.3'].includes(this.serverSettings.version) && this.compareVersions(packageJson.version, '2.3.3') >= 0) { await dbMigration.migrationPatch2(this) }