Implemented alert field AND/OR logic.

This commit is contained in:
DebaucheryLibrarian
2024-05-20 06:29:44 +02:00
parent 00a52c5f83
commit 0f05abcd27
2 changed files with 21 additions and 7 deletions

View File

@@ -16,6 +16,16 @@ exports.up = async (knex) => {
.notNullable()
.defaultTo(true);
});
await knex.raw(`
UPDATE alerts
SET
all_actors = false,
all_entities = false,
all_tags = false,
all_matches= false
WHERE alerts.all = false;
`);
};
exports.down = async (knex) => {