-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/#42 - jobmanri Flyway 도입 #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
이번 PR은 Flyway를 도입하여 데이터베이스 스키마 버전 관리를 시작하는 중요한 변경을 담고 있습니다. 전반적으로 Flyway 설정과 초기 스키마 파일이 잘 추가되었습니다. 리뷰에서는 몇 가지 중요한 점들을 지적했습니다. 첫째, V1__init.sql 파일에 포함된 DROP TABLE 구문은 데이터 유실의 위험이 있어 제거가 필요합니다. 둘째, User와 Profile 간의 일대일 관계 설계가 표준적이지 않아 리팩토링이 필요해 보입니다. 셋째, build.gradle의 의존성 설정, 엔티티와 스키마 간의 불일치, 그리고 테스트 스키마와 마이그레이션 스키마 간의 차이점 등 유지보수성과 안정성을 높이기 위한 몇 가지 제안을 드렸습니다. 추가적으로, application-local.yaml 파일에서 spring.jpa.hibernate.ddl-auto 속성이 update로 되어 있는데, Flyway와 충돌을 피하기 위해 none으로 변경하는 것을 강력히 권장합니다. 이 부분은 변경사항에 포함되지 않아 코멘트를 남기지 못했지만 매우 중요한 사항입니다.
| DROP TABLE IF EXISTS private_messages; | ||
| DROP TABLE IF EXISTS feed_comments; | ||
| DROP TABLE IF EXISTS feeds; | ||
| DROP TABLE IF EXISTS users; | ||
| DROP TABLE IF EXISTS profiles; | ||
| DROP TABLE IF EXISTS communities; | ||
| DROP TABLE IF EXISTS companies; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Conflicts: # src/main/java/com/example/bak/user/domain/Profile.java # src/main/java/com/example/bak/user/domain/User.java
Warning
이슈와 프로젝트(Project) 연결 시 반드시 주의하세요.
이는 업무 효율도를 위해서 사용하는 것이지 때문에 협조 부탁드립니다. 추가로, 완료 된 PR 이라면 리뷰어를 직접적으로 연결해주세요 :)
📌 연결된 이슈
📖 주요 변경 사항
🔖 작업 내용 요약
😎 질문