2023-11-10 16:22:24 -07:00
|
|
|
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);
|
2023-11-13 23:17:16 -07:00
|
|
|
table.boolean("ping_important").notNullable().defaultTo(0);
|
|
|
|
table.string("ping_msg").nullable().defaultTo(null);
|
2023-11-10 16:22:24 -07:00
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.down = function (knex) {
|
|
|
|
// remove various slow response parameters
|
|
|
|
return knex.schema
|
|
|
|
.alterTable("heartbeat", function (table) {
|
|
|
|
table.dropColumn("ping_status");
|
|
|
|
table.dropColumn("ping_threshold");
|
2023-11-13 23:17:16 -07:00
|
|
|
table.dropColumn("ping_important");
|
|
|
|
table.dropColumn("ping_msg");
|
2023-11-10 16:22:24 -07:00
|
|
|
});
|
|
|
|
};
|