Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create view recentsourcepackagecve #8

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions extra-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,36 @@ CREATE OR REPLACE VIEW public.sourcepackagecve
ALTER TABLE public.sourcepackagecve
OWNER TO glvd;


-- View: public.recentsourcepackagecve

-- DROP VIEW public.recentsourcepackagecve;

CREATE OR REPLACE VIEW public.recentsourcepackagecve
AS
SELECT sourcepackagecve.cve_id,
sourcepackagecve.source_package_name,
sourcepackagecve.source_package_version,
sourcepackagecve.gardenlinux_version,
sourcepackagecve.is_vulnerable,
sourcepackagecve.cve_published_date,
sourcepackagecve.base_score,
sourcepackagecve.vector_string,
sourcepackagecve.base_score_v40,
sourcepackagecve.base_score_v31,
sourcepackagecve.base_score_v30,
sourcepackagecve.base_score_v2,
sourcepackagecve.vector_string_v40,
sourcepackagecve.vector_string_v31,
sourcepackagecve.vector_string_v30,
sourcepackagecve.vector_string_v2
FROM sourcepackagecve
WHERE sourcepackagecve.cve_published_date::timestamp with time zone > (now() - '10 days'::interval);

ALTER TABLE public.recentsourcepackagecve
OWNER TO glvd;


-- View: public.sourcepackage

-- DROP VIEW public.sourcepackage;
Expand Down
Loading