14 lines
422 B
JavaScript
14 lines
422 B
JavaScript
exports.up = function (knex) {
|
|
// Add new column monitor.mqtt_websocket_path
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
table.string("mqtt_websocket_path", 255).nullable();
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
// Drop column monitor.mqtt_websocket_path
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
table.dropColumn("mqtt_websocket_path");
|
|
});
|
|
};
|