Skip to content

Commit

Permalink
Track repository last update time (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Jan 14, 2020
1 parent 0aaadc9 commit 746e81a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql.d/repositories/mark_repository_updated.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
--------------------------------------------------------------------------------
UPDATE repositories
SET
state = 'active'::repository_state
state = 'active'::repository_state,
last_updated = now()
WHERE
name = %(reponame)s;
1 change: 1 addition & 0 deletions sql.d/update/create_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ CREATE TABLE repositories (

first_seen timestamp with time zone NOT NULL,
last_seen timestamp with time zone NOT NULL,
last_updated timestamp with time zone NULL,

used_package_fields text[],

Expand Down

0 comments on commit 746e81a

Please sign in to comment.