Files
crowsnest/golang/assets/migrations/20250103140557_response_cache.sql

14 lines
339 B
MySQL
Raw Normal View History

-- +goose Up
-- +goose StatementBegin
CREATE TABLE responses (
url VARCHAR(255) NOT NULL UNIQUE PRIMARY KEY,
2025-01-07 09:32:57 +01:00
content BYTEA NOT NULL,
fetchDate TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
2025-01-07 09:32:57 +01:00
DROP TABLE IF EXISTS responses;
-- +goose StatementEnd