Skip to content

Commit

Permalink
Add number of reports into global and project statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 19, 2024
1 parent ded6174 commit 38405ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sql.d/schema/create_schema_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ CREATE TABLE metapackages (
has_related boolean NOT NULL DEFAULT false,
has_cves boolean NOT NULL DEFAULT false,
num_updates integer NOT NULL DEFAULT 0,
num_reports integer NOT NULL DEFAULT 0,

first_seen timestamp with time zone NOT NULL DEFAULT now(),
orphaned_at timestamp with time zone
Expand Down Expand Up @@ -457,7 +458,9 @@ CREATE TABLE statistics (
num_metapackages integer NOT NULL DEFAULT 0,
num_problems integer NOT NULL DEFAULT 0,
num_maintainers integer NOT NULL DEFAULT 0,
num_urls_checked integer NOT NULL DEFAULT 0
num_urls_checked integer NOT NULL DEFAULT 0,
num_reports_total integer NOT NULL DEFAULT 0,
num_reports_open integer NOT NULL DEFAULT 0
);

INSERT INTO statistics VALUES(DEFAULT);
Expand Down

0 comments on commit 38405ac

Please sign in to comment.