Skip to content

Commit 4e09c53

Browse files
committed
Remove links check_duration column
We will have enough realtime statistics from the new link checker, so we don't need to store this in the database
1 parent 6d4aece commit 4e09c53

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

migrate.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
alter table packages add column pkgconfig_names text[] NULL;
2+
3+
CREATE TYPE project_identifier_type AS enum(
4+
'pkgconfig'
5+
);
6+
7+
CREATE TABLE project_identifiers (
8+
project_id integer NOT NULL,
9+
"type" project_identifier_type NOT NULL,
10+
identifier text NOT NULL
11+
);
12+
13+
CREATE INDEX ON project_identifiers(project_id);
14+
CREATE INDEX ON project_identifiers(identifier);

sql.d/schema/create_schema_tables.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,7 @@ CREATE TABLE links (
506506
ipv6_last_failure timestamp with time zone,
507507
ipv6_success boolean,
508508
ipv6_status_code smallint,
509-
ipv6_permanent_redirect_target text,
510-
511-
check_duration real
509+
ipv6_permanent_redirect_target text
512510
);
513511

514512
CREATE UNIQUE INDEX ON links(url);

0 commit comments

Comments
 (0)