- configure description visibility per monitor - configure description visiblitiy per status pagepull/4612/head
parent
45690a25a0
commit
56fc66a2ab
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* @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");
|
||||
});
|
||||
};
|
Loading…
Reference in new issue