chore: Flyway 마이그레이션 검증 환경 구축 (#149) - #153
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. 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:
📝 WalkthroughWalkthroughFlyway Gradle 플러그인과 MySQL 8.4.9 CI 서비스를 추가했다. V8 기준 스키마를 로드한 뒤 Flyway 마이그레이션 검증과 JPA 스키마 검증 테스트를 실행한다. ChangesFlyway CI 스키마 검증
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant MySQL
participant Flyway
participant JpaSchemaValidationTest
GitHubActions->>MySQL: V8 기준 스키마 로드
GitHubActions->>Flyway: baseline, info, migrate, validate 실행
Flyway->>MySQL: 마이그레이션 및 스키마 검증
GitHubActions->>JpaSchemaValidationTest: flyway-ci 테스트 실행
JpaSchemaValidationTest->>MySQL: JPA ddl-auto validate 수행
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/flyway/baseline-v8.sql:
- Around line 193-208: Update the project_file schema so file_size matches
ProjectFile.fileSize by either removing the non-nullable entity constraint or
adding a migration that makes file_size NOT NULL with an appropriate default; do
not leave the database column nullable while the entity requires a value.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 23756db9-c226-4631-8c76-e032fb9e07b6
📒 Files selected for processing (5)
.github/flyway/baseline-v8.sql.github/workflows/ci.ymlbuild.gradlesrc/test/java/com/slatto/global/database/FlywaySchemaValidationTest.javasrc/test/resources/application-flyway-ci.yml
🔗 관련 이슈 (Related Issue)
Closes #149
📝 작업 내용
FLYWAY_URL,FLYWAY_USER,FLYWAY_PASSWORD) 설정flywayInfoflywayMigrateflywayValidateflywayRepairflywayClean실행 차단ddl-auto=validate를 통한 JPA 엔티티/DB 스키마 일치 검증 추가✅ PR 체크리스트
Summary by CodeRabbit
테스트
개선