Skip to content

Commit

Permalink
perf: bookmarked_survey 테이블에 unique index를 추가한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Feb 23, 2024
1 parent e346589 commit 2a4c179
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ create table if not exists bookmarked_survey (
target_id BIGINT not null,
bookmarked_survey_id BIGINT not null,
foreign key (target_id) references target (target_id),
foreign key (bookmarked_survey_id) references survey (survey_id)
foreign key (bookmarked_survey_id) references survey (survey_id),
unique index target_id_bookmarked_survey_id_idx (target_id, bookmarked_survey_id)
);

0 comments on commit 2a4c179

Please sign in to comment.