mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-06 01:14:46 +00:00
18 lines
570 B
JavaScript
18 lines
570 B
JavaScript
|
exports.up = function (knex) {
|
||
|
// add various slow response parameters
|
||
|
return knex.schema
|
||
|
.alterTable("heartbeat", function (table) {
|
||
|
table.integer("ping_status").nullable().defaultTo(null);
|
||
|
table.integer("ping_threshold").nullable().defaultTo(null);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
// remove various slow response parameters
|
||
|
return knex.schema
|
||
|
.alterTable("heartbeat", function (table) {
|
||
|
table.dropColumn("ping_status");
|
||
|
table.dropColumn("ping_threshold");
|
||
|
});
|
||
|
};
|