From 5bd3ab91f394b47d46fafdac02092140784e5530 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 30 Apr 2015 12:39:32 +0200 Subject: [PATCH] sql: add repos_history table --- sql/pimp_db.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sql/pimp_db.sql b/sql/pimp_db.sql index 48bc670..eee56ce 100644 --- a/sql/pimp_db.sql +++ b/sql/pimp_db.sql @@ -16,3 +16,10 @@ CREATE INDEX ix_trgm_repos_description ON CREATE INDEX ix_trgm_repos_full_name ON repos USING gin (full_name gin_trgm_ops); + +CREATE TABLE repos_history ( + ts timestamp DEFAULT current_timestamp, + repos integer NOT NULL, + fork_repos integer, + orig_repos integer +);