feat: extend monitor JSON Data evaluation with additional operators (#4614 )
parent
45690a25a0
commit
6dbfbdced3
@ -0,0 +1,22 @@
|
|||||||
|
exports.up = function (knex) {
|
||||||
|
return knex.schema
|
||||||
|
.alterTable("monitor", (table) => {
|
||||||
|
table.string("json_path_operator");
|
||||||
|
})
|
||||||
|
.then(() =>
|
||||||
|
knex("monitor")
|
||||||
|
.where({
|
||||||
|
type: "json-query"
|
||||||
|
})
|
||||||
|
.update({
|
||||||
|
"json_path_operator": "=="
|
||||||
|
})
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (knex) {
|
||||||
|
return knex.schema
|
||||||
|
.alterTable("monitor", (table) => {
|
||||||
|
table.dropColumn("json_path_operator");
|
||||||
|
});
|
||||||
|
};
|
Loading…
Reference in new issue