move collection and extraction of articles into their own file; add custom response cache
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE responses (
|
||||
url VARCHAR(255) NOT NULL UNIQUE PRIMARY KEY,
|
||||
content TEXT NOT NULL,
|
||||
fetchDate DATETIME DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE responses;
|
||||
-- +goose StatementEnd
|
||||
@@ -0,0 +1,9 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE responses ADD COLUMN processed BOOLEAN DEFAULT false;
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
ALTER TABLE responses DROP COLUMN processed;
|
||||
-- +goose StatementEnd
|
||||
Reference in New Issue
Block a user