Skip to content

Commit

Permalink
Use bigger integer type for num_updates field of a project
Browse files Browse the repository at this point in the history
For the record, smallint value was overflowed. Top 5 projects are
nginx, llvm, spidermonkey, asterisk and mplayer. It may be that the
actual cause is flapping data in some repo.
  • Loading branch information
AMDmi3 committed Mar 27, 2024
1 parent a107fb8 commit 76ad787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql.d/schema/create_schema_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ CREATE TABLE metapackages (
num_families_newest smallint NOT NULL DEFAULT 0,
has_related boolean NOT NULL DEFAULT false,
has_cves boolean NOT NULL DEFAULT false,
num_updates smallint NOT NULL DEFAULT 0,
num_updates integer NOT NULL DEFAULT 0,

first_seen timestamp with time zone NOT NULL DEFAULT now(),
orphaned_at timestamp with time zone
Expand Down

0 comments on commit 76ad787

Please sign in to comment.