fix: update db migration for expected value (#4614)

db migration now considers all monitors that have an expected_value and sets the default operator for them
pull/4617/head
Daniel Höfer 1 month ago
parent b3df75308b
commit ca485fff56

@ -5,9 +5,7 @@ exports.up = function (knex) {
})
.then(() =>
knex("monitor")
.where({
type: "json-query"
})
.whereNotNull("expected_value")
.update({
"json_path_operator": "=="
})

Loading…
Cancel
Save