mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
17 lines
550 B
JavaScript
17 lines
550 B
JavaScript
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", function (table) {
|
|
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_oid");
|
|
table.dropColumn("snmp_version");
|
|
table.dropColumn("json_path_operator");
|
|
});
|
|
};
|