[WTH-503] penalty_type 컬럼 WARNING 값 저장 안 되는 문제 수정 - #104
Merged
woneeeee merged 2 commits intoSep 13, 2026
Hidden character warning
The head ref may contain hidden characters: "fix/WTH-503-penalty_type-\uceec\ub7fc-WARNING-\uac12-\uc800\uc7a5-\uc548-\ub418\ub294-\ubb38\uc81c-\uc218\uc815"
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
hyxklee
reviewed
Sep 13, 2026
| @@ -0,0 +1,2 @@ | |||
| ALTER TABLE penalty | |||
| MODIFY COLUMN penalty_type VARCHAR(20) NOT NULL DEFAULT 'PENALTY'; | |||
Member
Member
Author
There was a problem hiding this comment.
우엄... 그렇네요... varchar로 푸는 것보단 enum으로 WARNING만 추가하는게 지금 방식이랑 맞는 것 같네여... 수정해둿습니닷!!
hyxklee
approved these changes
Sep 13, 2026
woneeeee
deleted the
fix/WTH-503-penalty_type-컬럼-WARNING-값-저장-안-되는-문제-수정
branch
September 13, 2026 13:24
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.

📌 Summary
페널티 부여 API에서 penaltyType=WARNING으로 요청 시 500 에러가 발생하던 문제 수정
📝 Changes
What
penalty 테이블의 penalty_type 컬럼을 VARCHAR(20)으로 변경하는 Flyway 마이그레이션(V14) 추가
Why
PenaltyType enum에 WARNING 값이 추가됐지만(28254b6) 이를 반영하는 DB 마이그레이션이 없어서, penalty_type 컬럼이 여전히 PENALTY만 허용하는 제약으로 남아 있었음. 이 상태로 WARNING을 insert하면
Data truncated for column 'penalty_type'에러로 500이 발생함How
V14 마이그레이션에서
ALTER TABLE penalty MODIFY COLUMN penalty_type VARCHAR(20) NOT NULL DEFAULT 'PENALTY'실행 — Hibernate의@Enumerated(EnumType.STRING)매핑과 동일한 VARCHAR로 맞춤📸 Screenshots / Logs
💡 Reviewer 참고사항
✅ Checklist