uptime-kuma/db/knex_migrations/2025-12-17-0000-add-globalping-monitor.js
Radu Lucuț bad679ee47
feat: add Globalping support (#6163)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-26 05:39:42 +00:00

18 lines
518 B
JavaScript

exports.up = function (knex) {
// Add new columns
return knex.schema.alterTable("monitor", function (table) {
table.string("subtype", 10).nullable();
table.string("location", 255).nullable();
table.string("protocol", 20).nullable();
});
};
exports.down = function (knex) {
// Drop columns
return knex.schema.alterTable("monitor", function (table) {
table.dropColumn("subtype");
table.dropColumn("location");
table.dropColumn("protocol");
});
};