mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
13 lines
336 B
JavaScript
13 lines
336 B
JavaScript
|
exports.up = function (knex) {
|
||
|
return knex.schema
|
||
|
.alterTable("monitor", function (table) {
|
||
|
table.text("conditions").notNullable().defaultTo("[]");
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
return knex.schema.alterTable("monitor", function (table) {
|
||
|
table.dropColumn("conditions");
|
||
|
});
|
||
|
};
|