You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
423 B
17 lines
423 B
3 months ago
|
-- +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
|