mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-20 20:46:08 +08:00
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lupaulus <20111917+lupaulus@users.noreply.github.com>
16 lines
456 B
JavaScript
16 lines
456 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");
|
|
});
|
|
};
|