Skip to content

Commit

Permalink
Merge branch 'main' into refactor/#214_belljun3395
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 authored Jul 19, 2024
2 parents b0d466a + 254b299 commit 42525ea
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- SUBSCRIPTION 테이블의 target_member_id, target_workbook_id 컬럼에 대한 유니크 키 제약을 제거합니다.
-- 해당 제약 조건 제거의 경우 직접 SQL을 작성하여 제거합니다.

-- ALTER TABLE SUBSCRIPTION
-- DROP KEY target_member_id;
--
-- ALTER TABLE SUBSCRIPTION
-- DROP KEY target_workbook_id;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- MAPPING_MEMBER_WORKBOOK 테이블의 기본키 제약 조건을 추가합니다.
ALTER TABLE MAPPING_MEMBER_WORKBOOK
ADD CONSTRAINT mapping_member_workbook_pk PRIMARY KEY (member_id, workbook_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- MAPPING_WORKBOOK_ARTICLE 테이블의 기본키 제약 조건을 추가합니다.
ALTER TABLE MAPPING_WORKBOOK_ARTICLE
ADD CONSTRAINT mapping_workbook_article_pk PRIMARY KEY (article_id, workbook_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
-- SUBSCRIPTION 테이블의 유니크 키 제약을 추가합니다.
ALTER TABLE SUBSCRIPTION
ADD CONSTRAINT subscription_unique_member_id_target_member_id UNIQUE (member_id, target_member_id);

ALTER TABLE SUBSCRIPTION
ADD CONSTRAINT subscription_unique_member_id_target_workbook_id UNIQUE (member_id, target_workbook_id);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- MAPPING_MEMBER_WORKBOOK 테이블의 기본키 제약 조건을 제거합니다.
ALTER TABLE MAPPING_MEMBER_WORKBOOK
DROP PRIMARY KEY;
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- MAPPING_WOKRBOOK_ARTICLE 테이블의 기본키 제약 조건을 제거합니다.
ALTER TABLE MAPPING_WORKBOOK_ARTICLE
DROP PRIMARY KEY;

0 comments on commit 42525ea

Please sign in to comment.