1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-21 17:36:44 +02:00

Fix #5087 and fix migration state (#5260)

This commit is contained in:
Louis Lam 2024-10-27 20:30:44 +08:00 committed by GitHub
parent 46d8744fa4
commit 277d6fe0ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,13 @@
// Update info_json column to LONGTEXT mainly for MariaDB
exports.up = function (knex) {
return knex.schema
.alterTable("monitor_tls_info", function (table) {
table.text("info_json", "longtext").alter();
});
};
exports.down = function (knex) {
return knex.schema.alterTable("monitor_tls_info", function (table) {
table.text("info_json", "text").alter();
});
};

View File

@ -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;