2024-04-27 03:05:56 +02:00
|
|
|
exports.up = function (knex) {
|
|
|
|
return knex.schema
|
|
|
|
.alterTable("monitor", function (table) {
|
2024-05-08 18:06:20 +02:00
|
|
|
table.string("snmp_oid").defaultTo(null);
|
|
|
|
table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c");
|
2024-06-05 23:37:47 +02:00
|
|
|
table.string("json_path_operator").defaultTo(null);
|
2024-04-27 03:05:56 +02:00
|
|
|
});
|
2024-04-30 23:10:43 +02:00
|
|
|
};
|
2024-04-30 23:11:21 +02:00
|
|
|
|
|
|
|
exports.down = function (knex) {
|
2024-05-01 02:06:03 +02:00
|
|
|
return knex.schema.alterTable("monitor", function (table) {
|
|
|
|
table.dropColumn("snmp_oid");
|
|
|
|
table.dropColumn("snmp_version");
|
2024-06-05 23:37:47 +02:00
|
|
|
table.dropColumn("json_path_operator");
|
2024-05-01 02:06:03 +02:00
|
|
|
});
|
2024-05-01 02:04:59 +02:00
|
|
|
};
|