Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develop 브랜치 충돌해결 #677

Merged
merged 9 commits into from
Jul 11, 2024
Next Next commit
fix : notification FK 회원 삭제 오류 수정 (#514)
* fix : notification/notification_subscribe DELETE CASCADE로 변경

* chore : Front 요청으로 인한 회원가입 에러코드 409 추가

* chore : DB 생략
duehee authored and Choi-JJunho committed May 10, 2024
commit a5f4586bc94c04c9784b62ab4d23bf02788175a1
Original file line number Diff line number Diff line change
@@ -136,6 +136,7 @@ ResponseEntity<UserTokenRefreshResponse> refresh(
@ApiResponse(responseCode = "401", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "403", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "404", content = @Content(schema = @Schema(hidden = true))),
@ApiResponse(responseCode = "409", content = @Content(schema = @Schema(hidden = true)))
}
)
@Operation(summary = "회원가입")
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ALTER TABLE `notification_subscribe`
DROP FOREIGN KEY `FK_NOTIFICATION_SUBSCRIBE_ON_USER`;
ALTER TABLE `notification_subscribe`
ADD CONSTRAINT `FK_NOTIFICATION_SUBSCRIBE_ON_USER`
FOREIGN KEY (`user_id`)
REFERENCES `koin`.`users` (`id`)
ON DELETE CASCADE
ON UPDATE RESTRICT;

ALTER TABLE `notification`
DROP FOREIGN KEY `FK_NOTIFICATION_ON_USER FOREIGN KEY`;
ALTER TABLE `notification`
ADD CONSTRAINT `FK_NOTIFICATION_ON_USER FOREIGN KEY`
FOREIGN KEY (`users_id`)
REFERENCES `koin`.`users` (`id`)
ON DELETE CASCADE;