Conversation
파일 업로드가 운영에서 전건 500으로 실패했다. JpaSystemException: could not execute statement [Field 'file_url' doesn't have a default value] at ProjectFileService.uploadProjectFile(ProjectFileService.java:124) a833792 에서 ProjectFile 의 file_url 을 storage_key 로, isPinned(boolean) 을 pinnedAt(nullable) 로 바꾸면서 대응 마이그레이션을 만들지 않았다. 운영 DB 는 ddl-auto=update 로 생성돼 신규 컬럼만 추가되고 구 컬럼 file_url, is_pinned 가 NOT NULL / DEFAULT 없음 상태로 남았다. 현재 INSERT 문은 두 컬럼을 포함하지 않으므로 모든 INSERT 가 거부된다. ddl-auto=validate 는 엔티티에 있는데 DB 에 없는 컬럼만 검사하고 그 반대는 보지 않아 이 상태를 잡아내지 못했다. 운영 DB 전체 컬럼을 엔티티와 대조해 같은 유형의 고아 컬럼이 project_file 두 건뿐임을 확인했다. file_url 만 제거하면 다음 업로드에서 is_pinned 로 동일하게 실패하므로 함께 제거한다. 삭제 시점 기준 project_file 은 0건이라 데이터 손실이 없다. V011 은 d5191f6 에서 쓰였다가 f1e99f0 에서 삭제된 이력이 있어 재사용하지 않는다.
…connections feat: 개인 알림 도메인 이벤트 연결
fix: project_file 레거시 컬럼 제거로 파일 업로드 복구
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
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.
🔗 관련 이슈 (Related Issue)
📝 작업 내용
develop브랜치를main에 병합해 운영에 배포합니다. 이 PR에서 새로 작성한 코드는 없고, 아래 PR들이 함께 나갑니다.✅ PR 체크리스트