mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
Update 2024-04-26-0000-snmp-monitor.js
This commit is contained in:
parent
e2e81091c3
commit
43bd09be2c
1 changed files with 0 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
exports.up = function (knex) {
|
exports.up = function (knex) {
|
||||||
return knex.schema
|
return knex.schema
|
||||||
.alterTable("monitor", function (table) {
|
.alterTable("monitor", function (table) {
|
||||||
table.string("snmp_community_string", 255).defaultTo("public");
|
|
||||||
table.string("snmp_oid").defaultTo(null);
|
table.string("snmp_oid").defaultTo(null);
|
||||||
table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c");
|
table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c");
|
||||||
table.string("json_path_operator").defaultTo(null);
|
table.string("json_path_operator").defaultTo(null);
|
||||||
|
@ -10,7 +9,6 @@ exports.up = function (knex) {
|
||||||
|
|
||||||
exports.down = function (knex) {
|
exports.down = function (knex) {
|
||||||
return knex.schema.alterTable("monitor", function (table) {
|
return knex.schema.alterTable("monitor", function (table) {
|
||||||
table.dropColumn("snmp_community_string");
|
|
||||||
table.dropColumn("snmp_oid");
|
table.dropColumn("snmp_oid");
|
||||||
table.dropColumn("snmp_version");
|
table.dropColumn("snmp_version");
|
||||||
table.dropColumn("json_path_operator");
|
table.dropColumn("json_path_operator");
|
||||||
|
|
Loading…
Reference in a new issue