-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because no more update_operations are being created for pyupio the current vulns will not be GCed. This is a manual intervention to clear them up and avoid double reporting. Signed-off-by: crozzy <[email protected]>
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
datastore/postgres/migrations/matcher/09-delete-pyupio.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Delete all update_operations for pyupio to trigger pyupio vuln deletion | ||
DELETE FROM update_operation WHERE updater = 'pyupio'; | ||
|
||
DELETE FROM vuln v1 USING | ||
vuln v2 | ||
LEFT JOIN uo_vuln uvl | ||
ON v2.id = uvl.vuln | ||
WHERE uvl.vuln IS NULL | ||
AND v2.updater = 'pyupio' | ||
AND v1.id = v2.id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters