You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
677 B
19 lines
677 B
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
table.string("snmp_community_string", 255).defaultTo("public");
|
|
table.string("snmp_oid").defaultTo(null);
|
|
table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c");
|
|
table.string("json_path_operator").defaultTo(null);
|
|
});
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
table.dropColumn("snmp_community_string");
|
|
table.dropColumn("snmp_oid");
|
|
table.dropColumn("snmp_version");
|
|
table.dropColumn("json_path_operator");
|
|
});
|
|
};
|