Files
uptime-kuma/db/knex_migrations/2023-10-08-0000-mqtt-query.js
Frank Elsinga 0f61d7ee1b chore: enable formatting over the entire codebase in CI (#6655)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-09 02:10:36 +01:00

14 lines
430 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");
});
};