Skip to content

fix :: meal retry 중복 처리 + 운영 Flyway 정합성(dedup 마이그레이션 복원)#680

Open
1210thatman wants to merge 1 commit into
developfrom
fix/meal-retry-duplicate-entry-flush
Open

fix :: meal retry 중복 처리 + 운영 Flyway 정합성(dedup 마이그레이션 복원)#680
1210thatman wants to merge 1 commit into
developfrom
fix/meal-retry-duplicate-entry-flush

Conversation

@1210thatman

@1210thatman 1210thatman commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

개요

이 브랜치의 기존 작업(meal retry duplicate entry / flush)에 더해, 운영 Flyway 검증 실패를 유발하던 dedup 마이그레이션 누락을 복원함.

Flyway 정합성 복원 (핵심)

운영 flyway_schema_history 의 rank3(202606041000, checksum 634640209)에 해당하는 파일이 이 브랜치에서 삭제되어 있어, 이 브랜치를 배포하면 FlywayValidateException 으로 부팅 실패함.

  • V202606041000__deduplicate_and_add_unique_constraints.sql 복원 (CRC32 = 634640209, 운영과 정확히 일치 검증 완료)
  • Drop_User(1874833870) 이미 일치, V1은 baseline 이하로 무시

참고

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • 출석 및 상태 데이터에 대해 user_id 기준 중복 생성이 방지되도록 제약조건이 추가되었습니다.
    • 동일 사용자에 대한 중복 레코드로 인한 데이터 불일치 가능성이 줄어들었습니다.

- V202606041000 복원 (checksum 634640209, 운영 flyway_schema_history rank3와 일치)
- 이 파일 누락 시 FlywayValidateException으로 부팅 실패

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: aba92d4a-d30f-494d-8c48-3162e5925131

📥 Commits

Reviewing files that changed from the base of the PR and between 98d175e and ad7dbd2.

📒 Files selected for processing (1)
  • src/main/resources/db/migration/V202606041000__deduplicate_and_add_unique_constraints.sql

Walkthrough

tbl_attendance와 tbl_status 테이블에 user_id 컬럼 기준의 유니크 제약조건(uk_attendance_user_id, uk_status_user_id)을 추가하는 데이터베이스 마이그레이션 SQL 파일이 추가되었습니다.

Changes

유니크 제약조건 마이그레이션

Layer / File(s) Summary
유니크 제약조건 추가
src/main/resources/db/migration/V202606041000__deduplicate_and_add_unique_constraints.sql
tbl_attendance와 tbl_status 테이블의 user_id 컬럼에 각각 uk_attendance_user_id, uk_status_user_id 유니크 제약조건을 추가하는 DDL이 포함되었습니다.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: ByunDohwi, imhanseong

Poem

토끼가 콩콩, 테이블을 콩콩
중복은 이제 안녕, 유니크만 남았네
user_id 하나씩, 자리 잡고 앉으니
데이터도 깔끔, 마음도 깔끔 🐰✨
마이그레이션 완료, 폴짝 뛰어봐요!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 중복 처리와 운영 Flyway 정합성, dedup 마이그레이션 복원을 구체적으로 요약해 변경사항과 잘 맞습니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/meal-retry-duplicate-entry-flush

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant