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 2 months ago
parent b3df75308b
commit ca485fff56

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

Loading…
Cancel
Save