blogdor/migrations/0003_runs.up.sql
2026-01-02 12:30:37 -08:00

8 lines
341 B
SQL

CREATE TABLE IF NOT EXISTS runs (
id INTEGER NOT NULL PRIMARY KEY,
feed INTEGER NOT NULL,
run DATETIME NOT NULL DEFAULT current_timestamp,
fetched DATETIME NOT NULL DEFAULT current_timestamp,
posted DATETIME, -- once this becomes non-null, the program will ensure it will never be null again
FOREIGN KEY (feed) REFERENCES feeds(id)
);