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");
    });
};
