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.
uptime-kuma/db/knex_migrations/2024-03-25-0000-json-data-o...

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");
});
};