diff --git a/server/database.js b/server/database.js index 75f5f25c..eb459435 100644 --- a/server/database.js +++ b/server/database.js @@ -775,8 +775,6 @@ class Database { await migrationServer.start(port, hostname); } - await Settings.set("migrateAggregateTableState", "migrating"); - log.info("db", "Migrating Aggregate Table"); log.info("db", "Getting list of unique monitors"); @@ -799,6 +797,8 @@ class Database { } } + await Settings.set("migrateAggregateTableState", "migrating"); + let progressPercent = 0; let part = 100 / monitors.length; let i = 1;