feat: Add toggle to hide the uptime percentage on a statuspage (#4587)
Co-authored-by: Bas Wieringa <bas.wieringa@waterplatformcompany.com> Co-authored-by: Frank Elsinga <frank@elsinga.de>pull/6411/head^2
parent
eb783897da
commit
5c83b17992
@ -0,0 +1,15 @@
|
||||
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");
|
||||
});
|
||||
};
|
||||
Loading…
Reference in new issue