Skip to content

Commit

Permalink
Update V9__callbacks.sql (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szer committed Jul 22, 2024
1 parent c916380 commit c976d9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/migrations/V9__callbacks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ FROM (SELECT b.message_text, b.id
JOIN public.banned b ON b.id = fpm.id) AS b
WHERE false_positive_messages.id = b.id;

DELETE FROM false_positive_messages
WHERE ctid NOT IN (SELECT MIN(ctid)
FROM false_positive_messages
GROUP BY text);

ALTER TABLE false_positive_messages
ALTER COLUMN text SET NOT NULL;

Expand Down

0 comments on commit c976d9c

Please sign in to comment.