You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
465 B
17 lines
465 B
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");
|
|
});
|
|
};
|