-- +goose Up -- +goose StatementBegin PRAGMA foreign_keys = ON; CREATE TABLE stream_link ( id INTEGER PRIMARY KEY, url TEXT, stream_id INTEGER, description TEXT, FOREIGN KEY(stream_id) REFERENCES stream(id)); CREATE TABLE stream (id INTEGER PRIMARY KEY, title TEXT, description TEXT); -- +goose StatementEnd -- +goose Down -- +goose StatementBegin DROP TABLE stream_link; DROP TABLE stream; -- +goose StatementEnd