Skip to content

Commit

Permalink
fix not setting a default for json monitor operations (louislam#5295)
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm authored Nov 5, 2024
1 parent 5bcde56 commit a7407a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exports.up = function (knex) {
return knex("monitor").whereNull("json_path_operator").update("json_path_operator", "==");
};
exports.down = function (knex) {
// changing the json_path_operator back to null for all "==" is not possible anymore
// we have lost the context which fields have been set explicitely in >= v2.0 and which would need to be reverted
};

0 comments on commit a7407a1

Please sign in to comment.