Skip to content

Commit

Permalink
Fix: Add missing EPSS columns for "no CVEs" case
Browse files Browse the repository at this point in the history
The materialized view result_vt_epss now also has the columns
epss_severity and max_epss_severity in case there are no CVEs present
when the view is created.

This fixes SQL errors resulting from those missing columns.
  • Loading branch information
timopollmeier committed Jul 29, 2024
1 parent 336ccf9 commit 19156eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/manage_pg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1849,9 +1849,11 @@ create_view_result_vt_epss ()
" epss_score,"
" epss_percentile,"
" epss_cve,"
" epss_severity,"
" max_epss_score,"
" max_epss_percentile,"
" max_epss_cve"
" max_epss_severity,"
" FROM nvts);");

sql ("SELECT create_index ('result_vt_epss_by_vt_id',"
Expand Down

0 comments on commit 19156eb

Please sign in to comment.