fix not setting a default for json monitor operations (#5295)

pull/5317/head
Frank Elsinga 3 weeks ago committed by GitHub
parent 5bcde56a0f
commit a7407a1b65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
};
Loading…
Cancel
Save