Feature/#34 문항 ID PK를 자연키에서 대체키로 변경 및 변경사항 반영#46
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🌱 관련 이슈
📌 작업 내용 및 특이사항
기존 Problem의 ID는 ProblemIdService가 만들어주는 자연키였습니다.
하지만 비즈니스 규칙 변경에 따라 ID 생성 규칙이 바뀌어야하는 문제가 발생하였고 PK로 설정되어 있던 문항 ID 로직을 수정하는 것이 유동적이지 못한 문제가 발생하였습니다.
따라서, 자연키대신 Auto_Increment의 대체키로 PK를 적용하고 문항ID는 column값으로 관리하기로 하였습니다.
[참고 1] https://mangkyu.tistory.com/287
[참고 2] https://www.inflearn.com/community/questions/124691/%EB%A9%A4%EB%B2%84-%ED%81%B4%EB%9E%98%EC%8A%A4-%EC%84%A4%EA%B3%84%ED%95%A0-%EB%95%8C-db-%EC%B9%BC%EB%9F%BC-%EA%B5%AC%EC%84%B1%EC%97%90-%EB%8C%80%ED%95%B4-%EA%B6%81%EA%B8%88%EC%A6%9D%EC%9D%B4-%EC%83%9D%EA%B2%BC%EC%8A%B5%EB%8B%88%EB%8B%A4
문항 내 변경사항
📝 참고사항
📚 기타