diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2024-03-17 17:33:46 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2024-03-17 17:34:25 +0900 |
commit | 63eaf4837fef5ea76a9249a752041d58e51eba0f (patch) | |
tree | b75369c8c4fe5251ae665ad21924888e90347cbc /deploy/article_links.sql | |
parent | 1cbd623da4d1eb4f6b44f9b1d72978dd7cdbd412 (diff) |
Rename column name from `id` to `<name>_id`.
Diffstat (limited to 'deploy/article_links.sql')
-rw-r--r-- | deploy/article_links.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/article_links.sql b/deploy/article_links.sql index b562ffc..c39c814 100644 --- a/deploy/article_links.sql +++ b/deploy/article_links.sql @@ -7,8 +7,8 @@ BEGIN; SET search_path to diary; CREATE TABLE article_links( - article_id UUID REFERENCES articles(id), - linked_article_id UUID REFERENCES articles(id), + article_id UUID REFERENCES articles, + linked_article_id UUID REFERENCES articles(article_id), PRIMARY KEY(article_id, linked_article_id) ); |