diff --git a/pkg/database/migrations/004_scrape_history.sql b/pkg/database/migrations/004_scrape_history.sql index 5d23e44..5ae010b 100644 --- a/pkg/database/migrations/004_scrape_history.sql +++ b/pkg/database/migrations/004_scrape_history.sql @@ -1,8 +1,8 @@ -- +migrate Up CREATE TABLE "ScrapeHistory" ( - user_source_id CHAR(25) NOT NULL REFERENCES "UserSource" (id), scrape_task_id CHAR(25) PRIMARY KEY, + user_source_id CHAR(25) NOT NULL REFERENCES "UserSource" (id), created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, finished_at TIMESTAMP NULL, error TEXT NULL,