mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-01 10:44:05 +00:00
16 lines
502 B
JavaScript
16 lines
502 B
JavaScript
|
exports.up = function (knex) {
|
||
|
return knex.schema
|
||
|
.alterTable("status_page", function (table) {
|
||
|
table.boolean("show_locale_selector").notNullable().defaultTo(false);
|
||
|
table.string("default_locale").nullable().defaultTo("");
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
return knex.schema
|
||
|
.alterTable("status_page", function (table) {
|
||
|
table.dropColumn("default_locale");
|
||
|
table.dropColumn("show_locale_selector");
|
||
|
});
|
||
|
};
|