From e944492da87d4fa86c19ec0d3c3688186064fbab Mon Sep 17 00:00:00 2001 From: Matt Visnovsky Date: Tue, 30 Apr 2024 18:06:03 -0600 Subject: [PATCH] Corrected down function https://github.com/louislam/uptime-kuma/pull/4717/files/b4bd003626986be1faab7142710f9443273d89fc#r1585590243 --- db/knex_migrations/2024-04-26-0000-snmp-monitor.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/db/knex_migrations/2024-04-26-0000-snmp-monitor.js b/db/knex_migrations/2024-04-26-0000-snmp-monitor.js index 2b9474c8..6cf87100 100644 --- a/db/knex_migrations/2024-04-26-0000-snmp-monitor.js +++ b/db/knex_migrations/2024-04-26-0000-snmp-monitor.js @@ -10,5 +10,11 @@ exports.up = function (knex) { }; exports.down = function (knex) { - // Nothing to do here + 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"); + }); };