-
Notifications
You must be signed in to change notification settings - Fork 0
Bug/#66 #68
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
Merged
Bug/#66 #68
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| spring: | ||
| jpa: | ||
| hibernate: | ||
| ddl-auto: update | ||
| ddl-auto: none | ||
|
|
||
| config: | ||
| activate: | ||
|
|
||
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
Oops, something went wrong.
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.
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.
💡 Verification agent
🧩 Analysis chain
prod 환경에서 hbm2ddl 비활성화는 바람직. 다만 마이그레이션 경로(예: Flyway/Liquibase) 확보 필요.
ddl-auto: none은 운영에서 자동 스키마 변경을 막아 안전합니다. 단, 스키마 드리프트를 막으려면 Flyway/Liquibase 기반 배포 마이그레이션이 필수입니다.none대신validate로 두면 스키마 불일치 시 애플리케이션이 즉시 실패하여 문제를 조기에 드러낼 수 있습니다. 선택지로 검토해주세요.다음 스크립트로 마이그레이션 도구 사용 여부와 다른 프로필의
ddl-auto설정을 점검해 주세요.원하시면
validate로 바꾸는 간단 패치입니다:🏁 Script executed:
Length of output: 980
prod 프로파일에서 마이그레이션 도구 추가 및 ddl-auto 설정 검토
application-prod.yml(src/main/resources)에서ddl-auto: none은 운영에서 자동 스키마 변경을 막아 적절하지만,build.gradle또는pom.xml에 Flyway/Liquibase 의존성이 전혀 없습니다. 운영 스키마 관리를 위해 마이그레이션 도구를 도입해 주세요.application-dev.yml:ddl-auto: validateapplication-dep.yml:ddl-auto: nonenone대신validate설정 검토 가능(마이그레이션 적용 보장 필요).📝 Committable suggestion