crawler.sql: add crawl_history table
This commit is contained in:
parent
752e23eb4b
commit
802baf6425
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue