-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop_back_core' into develop_…
…back_core
- Loading branch information
Showing
5 changed files
with
33 additions
and
36 deletions.
There are no files selected for viewing
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
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
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
29 changes: 29 additions & 0 deletions
29
backend/core/src/main/resources/db/migration/V34__drop_unique_owner_friend.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,29 @@ | ||
-- friend_invite 외래 키 삭제 -> 유니크 키 삭제 -> 외래 키 추가 | ||
ALTER TABLE friend_invite | ||
DROP CONSTRAINT fk_friend_invite_owner_id; | ||
|
||
ALTER TABLE friend_invite | ||
DROP CONSTRAINT fk_friend_invite_friend_id; | ||
|
||
ALTER TABLE friend_invite DROP KEY unique_owner_friend_pair; | ||
|
||
ALTER TABLE friend_invite | ||
ADD CONSTRAINT fk_friend_invite_owner_id FOREIGN KEY (owner_id) REFERENCES member (member_id); | ||
|
||
ALTER TABLE friend_invite | ||
ADD CONSTRAINT fk_friend_invite_friend_id FOREIGN KEY (friend_id) REFERENCES member (member_id); | ||
|
||
-- member_friend 외래 키 삭제 -> 유니크 키 삭제 -> 외래 키 추가 | ||
ALTER TABLE member_friend | ||
DROP CONSTRAINT fk_member_friend_owner_id; | ||
|
||
ALTER TABLE member_friend | ||
DROP CONSTRAINT fk_member_friend_friend_id; | ||
|
||
ALTER TABLE member_friend DROP KEY unique_owner_friend_relation; | ||
|
||
ALTER TABLE member_friend | ||
ADD CONSTRAINT fk_member_friend_owner_id FOREIGN KEY (owner_id) REFERENCES member (member_id); | ||
|
||
ALTER TABLE member_friend | ||
ADD CONSTRAINT fk_member_friend_friend_id FOREIGN KEY (friend_id) REFERENCES member (member_id); |
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