-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into refactor/#214_belljun3395
- Loading branch information
Showing
6 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
data/db/migration/entity/V1.00.0.10__drop_subscription_unique_key.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
3 changes: 3 additions & 0 deletions
3
data/db/migration/entity/V1.00.0.11__add_mapping_member_workbook_pk.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
3 changes: 3 additions & 0 deletions
3
data/db/migration/entity/V1.00.0.12__add_mapping_workbook_article_pk.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
6 changes: 6 additions & 0 deletions
6
data/db/migration/entity/V1.00.0.13__add_subscription_unique_key.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
3 changes: 3 additions & 0 deletions
3
data/db/migration/entity/V1.00.0.8__drop_mapping_member_workbook_pk.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
3 changes: 3 additions & 0 deletions
3
data/db/migration/entity/V1.00.0.9__drop_mapping_workbook_article_pk.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |