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-23-0302_status-page...

28 lines
811 B

/**
* @param { import("knex").Knex } knex Knex instance
* @returns { Promise<void> }
*/
exports.up = function (knex) {
return knex.schema
.alterTable("status_page", function (table) {
table.boolean("show_descriptions").notNullable().defaultTo(false);
})
.alterTable("monitor", function (table) {
table.boolean("show_description").notNullable().defaultTo(false);
});
};
/**
* @param { import("knex").Knex } knex Knex instance
* @returns { Promise<void> }
*/
exports.down = function (knex) {
return knex.schema
.alterTable("status_page", function (table) {
table.dropColumn("show_descriptions");
})
.alterTable("monitor", function (table) {
table.dropColumn("show_description");
});
};