mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-02-03 18:27:45 -06:00
Co-authored-by: Frank Elsinga <frank@elsinga.de> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
18 lines
518 B
JavaScript
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");
|
|
});
|
|
};
|