You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
uptime-kuma/db/knex_migrations/2024-03-15-0000-hide-uptime...

17 lines
501 B

exports.up = function (knex) {
// Add new column status_page.hide_uptime_percentage
return knex.schema
.alterTable("status_page", function (table) {
table.boolean("hide_uptime_percentage").notNullable().defaultTo(false);
});
};
exports.down = function (knex) {
// Drop column status_page.hide_uptime_percentage
return knex.schema
.alterTable("status_page", function (table) {
table.dropColumn("hide_uptime_percentage");
});
};