Skip to content

Commit

Permalink
Applied additional migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
darleet committed May 28, 2024
1 parent a9ed5f2 commit 8aa0c15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Empty file.
5 changes: 5 additions & 0 deletions migrations/000002_alter_constraints.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE articles_votes
ADD CONSTRAINT unique_article_author UNIQUE (article_id, author_id);

ALTER TABLE comments_votes
ADD CONSTRAINT unique_comment_author UNIQUE (comment_id, author_id);

0 comments on commit 8aa0c15

Please sign in to comment.