mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-08 02:12:10 +00:00
17 lines
465 B
JavaScript
17 lines
465 B
JavaScript
![]() |
exports.up = function (knex) {
|
||
|
// Add new column monitor.mqtt_check_type
|
||
|
return knex.schema
|
||
|
.alterTable("monitor", function (table) {
|
||
|
table.string("mqtt_check_type", 255).notNullable().defaultTo("keyword");
|
||
|
});
|
||
|
|
||
|
};
|
||
|
|
||
|
exports.down = function (knex) {
|
||
|
// Drop column monitor.mqtt_check_type
|
||
|
return knex.schema
|
||
|
.alterTable("monitor", function (table) {
|
||
|
table.dropColumn("mqtt_check_type");
|
||
|
});
|
||
|
};
|