mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-12-09 17:15:28 +01:00
Co-authored-by: Bas Wieringa <bas.wieringa@waterplatformcompany.com> Co-authored-by: Frank Elsinga <frank@elsinga.de>
15 lines
508 B
JavaScript
15 lines
508 B
JavaScript
exports.up = function (knex) {
|
|
// Add new column status_page.show_only_last_heartbeat
|
|
return knex.schema
|
|
.alterTable("status_page", function (table) {
|
|
table.boolean("show_only_last_heartbeat").notNullable().defaultTo(false);
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
// Drop column status_page.show_only_last_heartbeat
|
|
return knex.schema
|
|
.alterTable("status_page", function (table) {
|
|
table.dropColumn("show_only_last_heartbeat");
|
|
});
|
|
};
|