14 lines
339 B
SQL
14 lines
339 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE TABLE responses (
|
|
url VARCHAR(255) NOT NULL UNIQUE PRIMARY KEY,
|
|
content BYTEA NOT NULL,
|
|
fetchDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
-- +goose StatementEnd
|
|
|
|
-- +goose Down
|
|
-- +goose StatementBegin
|
|
DROP TABLE IF EXISTS responses;
|
|
-- +goose StatementEnd
|