mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-08 22:51:00 +00:00
11 lines
254 B
SQL
11 lines
254 B
SQL
-- +goose Up
|
|
|
|
CREATE TABLE IF NOT EXISTS attachments_articles_mapping (
|
|
article_id INTEGER REFERENCES articles(id),
|
|
content_type TEXT NOT NULL,
|
|
attachment_id TEXT NOT NULL
|
|
);
|
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE IF EXISTS attachments_articles_mapping; |