mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
67250d6302
* Feat: Retries persistence * Fix: Set duration for first beat of push monitor * Feat: Update UptimeCalculator in push route * Fix: Handle resend in push route * Chore: Remove debug log
15 lines
392 B
JavaScript
15 lines
392 B
JavaScript
exports.up = function (knex) {
|
|
// Add new column heartbeat.retries
|
|
return knex.schema
|
|
.alterTable("heartbeat", function (table) {
|
|
table.integer("retries").notNullable().defaultTo(0);
|
|
});
|
|
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema
|
|
.alterTable("heartbeat", function (table) {
|
|
table.dropColumn("retries");
|
|
});
|
|
};
|