uptime-kuma/db/knex_migrations/2024-08-24-0000-conditions.js

13 lines
336 B
JavaScript
Raw Permalink Normal View History

2024-08-30 19:48:13 +00:00
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");
});
};