aboutsummaryrefslogtreecommitdiff
path: root/deploy/article_taggings.sql
blob: 0719c8f818a7a05174ad4ba815f75e08dba163af (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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,
  tag_id INT REFERENCES tags,
  PRIMARY KEY(article_id, tag_id)
);

COMMIT;