crawler.sql: add crawl_history table

This commit is contained in:
Stefano Zacchiroli 2015-07-07 11:31:21 +02:00
parent 752e23eb4b
commit 802baf6425

View file

@ -76,3 +76,15 @@ begin
end
$$
language plpgsql;
create table crawl_history (
id bigserial primary key,
repo integer references repos(id),
task_id uuid, -- celery task id
date timestamptz not null,
duration interval,
status boolean,
result json,
stdout text,
stderr text
);