mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-27 01:02:34 +01:00
Move removing old version scan reports of trivy to 2.4.2 (#16261)
Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
parent
7100e893f1
commit
89fe7b0819
2
make/migrations/postgresql/0071_2.4.2_schema.up.sql
Normal file
2
make/migrations/postgresql/0071_2.4.2_schema.up.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/* Remove old version scan reports of trivy */
|
||||||
|
DELETE FROM scan_report WHERE mime_type='application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0' AND registration_uuid IN (SELECT uuid FROM scanner_registration WHERE name='Trivy' AND immutable='true');
|
@ -21,4 +21,3 @@ CREATE TABLE IF NOT EXISTS artifact_accessory (
|
|||||||
CONSTRAINT unique_artifact_accessory UNIQUE (artifact_id, subject_artifact_id)
|
CONSTRAINT unique_artifact_accessory UNIQUE (artifact_id, subject_artifact_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
DELETE FROM scan_report WHERE mime_type='application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0' AND registration_uuid IN (SELECT uuid FROM scanner_registration WHERE name='Trivy' AND immutable='true');
|
|
||||||
|
Loading…
Reference in New Issue
Block a user