Skip to content

Commit

Permalink
Fix: Drop result_vt_epss view when rebuilding nvt related tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed Jul 29, 2024
1 parent f99a1b7 commit 336ccf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/manage_sql_nvts.c
Original file line number Diff line number Diff line change
Expand Up @@ -1979,6 +1979,7 @@ update_nvts_from_vts (element_t *get_vts_response,
if (rebuild) {
sql ("DROP VIEW IF EXISTS results_autofp;");
sql ("DROP VIEW vulns;");
sql ("DROP MATERIALIZED VIEW IF EXISTS result_vt_epss;");
sql ("DROP TABLE nvts, nvt_preferences, vt_refs, vt_severities;");

sql ("ALTER TABLE vt_refs_rebuild RENAME TO vt_refs;");
Expand Down

0 comments on commit 336ccf9

Please sign in to comment.