From 19cbd7952f8f70cfe030a1a894aaff16af8ec8fe Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 19 Feb 2022 17:10:34 -0500 Subject: dbstore: store cve year and number instead of CVE ID, add and use assigners table --- dbstore/sql/feed/insert-cve.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dbstore/sql/feed') diff --git a/dbstore/sql/feed/insert-cve.sql b/dbstore/sql/feed/insert-cve.sql index 02c0a8a..9e62048 100644 --- a/dbstore/sql/feed/insert-cve.sql +++ b/dbstore/sql/feed/insert-cve.sql @@ -1,2 +1,5 @@ -- add cve -INSERT INTO cves(item_id, nvd_cve_id, assigner) VALUES (?, ?, ?); +INSERT INTO cves(item_id, cve_year, cve_num, assigner_id) VALUES ( + ?, ?, ?, + (SELECT assigner_id FROM assigners WHERE assigner = ?) +); -- cgit v1.2.3