mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 14:03:12 +08:00
Apply suggestions from code review
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
exports.up = function (knex) {
|
||||
return knex.schema
|
||||
.alterTable("monitor", function (table) {
|
||||
table.string("snmp_community_string", 255).defaultTo("public"); // Add snmp_community_string column
|
||||
table.string("snmp_oid").defaultTo(null); // Add oid column
|
||||
table.enum("snmp_version", [ "0", "1", "3" ]).defaultTo("1"); // Add snmp_version column with enum values (0: SNMPv1, 1: SNMPv2c, 3: SNMPv3)
|
||||
table.float("snmp_control_value").defaultTo(null); // Add control_value column as float
|
||||
table.string("snmp_condition").defaultTo(null); // Add oid column
|
||||
table.string("snmp_community_string", 255).defaultTo("public");
|
||||
table.string("snmp_oid").defaultTo(null);
|
||||
table.enum("snmp_version", [ "1", "2c", "3" ]).defaultTo("2c");
|
||||
table.float("snmp_control_value").defaultTo(null);
|
||||
table.string("snmp_condition").defaultTo(null);
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user