yans/internal/backend/sqlite/migrations/002_attachments.sql

11 lines
254 B
MySQL
Raw Normal View History

2022-04-12 00:29:22 +00:00
-- +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;