[fix] #309 같은 날짜 일기 중복 저장 요청 race condition 방지 #314
Merged
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.
Related issue 🛠
Work Description ✏️
Flyway 마이그레이션 추가
기존 dev/prod는 이미 baseline 적용된 상태 → V2만 정상 적용됨
같은 날짜 일기 중복 저장 요청 race condition 방지
동시 요청 시 두번째거 일기 저장하려 할 때 기존에 있던 예외 반환
피드 조회 시 혹시나 발생하는 중복 저장된 일기 중 하나만 조회되도록 distinct 키워드 추가
Screenshot 📸
예전에 올린 Flyway 도입 PR에서 테스트한다고 만들었던 V2마이그레이션이 local에만 남아있어서, 지우고 다시 적용해서 v1,v2 둘 다 적용된 모습입니다.
Uncompleted Tasks 😅
N/A
To Reviewers 📢