From 58d8e25d3f4fe6aa65ad186076d5fb01577a82da Mon Sep 17 00:00:00 2001 From: Steven Ding Date: Wed, 11 Sep 2024 19:56:05 -0400 Subject: [PATCH] fix: match cve_metrics foreign key to the other table definition (#4436) * fixes #4434 Co-authored-by: Steven Ding --- cve_bin_tool/cvedb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cve_bin_tool/cvedb.py b/cve_bin_tool/cvedb.py index ea5b8b9885..0aad507049 100644 --- a/cve_bin_tool/cvedb.py +++ b/cve_bin_tool/cvedb.py @@ -107,7 +107,7 @@ class CVEDB: metric_score REAL, metric_field TEXT, FOREIGN KEY(cve_number) REFERENCES cve_severity(cve_number), - FOREIGN KEY(metric_id) REFERENCES metrics(metric_id) + FOREIGN KEY(metric_id) REFERENCES metrics(metrics_id) ) """, "metrics": """