diff options
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/article_taggings.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/article_taggings.sql b/deploy/article_taggings.sql new file mode 100644 index 0000000..3985543 --- /dev/null +++ b/deploy/article_taggings.sql @@ -0,0 +1,16 @@ +-- Deploy diary:article_taggings to pg +-- requires: schema +-- requires: tags +-- requires: articles + +BEGIN; + +SET search_path to diary; + +CREATE TABLE article_taggings( + article_id UUID REFERENCES articles(id), + tag_id INT REFERENCES tags(id), + PRIMARY KEY(article_id, tag_id) +); + +COMMIT; |