mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
16 lines
489 B
JavaScript
16 lines
489 B
JavaScript
exports.up = function (knex) {
|
|
// Add new column status_page.show_last_heartbeat
|
|
return knex.schema
|
|
.alterTable("status_page", function (table) {
|
|
table.boolean("show_last_heartbeat").notNullable().defaultTo(false);
|
|
});
|
|
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
// Drop column status_page.show_last_heartbeat
|
|
return knex.schema
|
|
.alterTable("status_page", function (table) {
|
|
table.dropColumn("show_last_heartbeat");
|
|
});
|
|
};
|