You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
527 B
21 lines
527 B
exports.up = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", (table) => {
|
|
table.string("json_path_operator");
|
|
})
|
|
.then(() =>
|
|
knex("monitor")
|
|
.whereNotNull("expected_value")
|
|
.update({
|
|
"json_path_operator": "=="
|
|
})
|
|
);
|
|
};
|
|
|
|
exports.down = function (knex) {
|
|
return knex.schema
|
|
.alterTable("monitor", (table) => {
|
|
table.dropColumn("json_path_operator");
|
|
});
|
|
};
|