From 4a326aa8b06f957df433ec740e51e17d2fdfcb3e Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Fri, 8 Jan 2021 03:39:00 +0000 Subject: [PATCH] chore: delete records of scan_report The report in previous scan_report records not work well the vulnerabilities stored in the schema table, so delete the scan_report records. Signed-off-by: He Weiwei --- make/migrations/postgresql/0050_2.2.0_schema.up.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/migrations/postgresql/0050_2.2.0_schema.up.sql b/make/migrations/postgresql/0050_2.2.0_schema.up.sql index 1003eb81a..58004e278 100644 --- a/make/migrations/postgresql/0050_2.2.0_schema.up.sql +++ b/make/migrations/postgresql/0050_2.2.0_schema.up.sql @@ -478,6 +478,11 @@ Common vulnerability reporting schema. Github proposal link : https://github.com/goharbor/community/pull/145 */ +/* +The old scan_report not work well with report_vulnerability_record and vulnerability_record so delete them +*/ +DELETE FROM scan_report; + -- -------------------------------------------------- -- Table Structure for `main.VulnerabilityRecord` -- --------------------------------------------------