mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-05-23 07:12:34 +02:00

- configure description visibility per monitor - configure description visiblitiy per status page
27 lines
811 B
JavaScript
27 lines
811 B
JavaScript
/**
|
|
* @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");
|
|
});
|
|
};
|