mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 17:04:46 +00:00
17 lines
570 B
JavaScript
17 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");
|
|
});
|
|
};
|