mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-30 03:00:40 +00:00
da8f0d1c31
Co-authored-by: Frank Elsinga <frank@elsinga.de>
20 lines
780 B
JavaScript
20 lines
780 B
JavaScript
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.float("snmp_control_value").defaultTo(null);
|
|
table.string("snmp_condition").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("snmp_control_value");
|
|
table.dropColumn("snmp_condition");
|
|
});
|
|
};
|