chore: Flyway 설정을 통한 데이터베이스 스키마 관리 적용(#66)#68
Merged
chaiminwoo0223 merged 1 commit intodevelopfrom Aug 30, 2025
Merged
Conversation
* chore: local, dev, test 환경 설정에서 ddl-auto: none으로 변경 * chore: prod, dev, test 환경 설정에서 open-in-view: false 추가 * chore: build.gradle에 Flyway 의존성 추가 * chore: Flyway 환경별 프로필(prod/dev/local/test) 설정 추가 * chore: applicaion.yml에 sql.init.mode: never 추가 * chore: V1__create_tables.sql 추가
hisonghy
approved these changes
Aug 30, 2025
Contributor
hisonghy
left a comment
There was a problem hiding this comment.
고생하셨습니다!
Flyway를 사용해 모든 환경에서 스키마를 일관되게 유지하고, 마이그레이션/변경 사항을 버전 별로 관리해 이력을 추적할 수 있어 더욱 좋은 것 같아요
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.
📌 작업 내용 및 특이사항
✅ 환경 설정
build.gradle에 Flyway 의존성 추가 (flyway-core, flyway-mysql)application-local.yml,application-dev.yml,application-test.yml환경 설정에서spring.jpa.hibernate.ddl-auto: none으로 변경application-prod.yml,application-dev.yml,application-test.yml환경 설정에서spring.jpa.open-in-view: false추가application.yml환경 설정에서spring.sql.init.mode: never추가✅ Flyway 적용
prod,dev,local,test)db/migration패키지 추가V1__create_tables.sql: member, trip, stamp, mission, study_log 등 테이블 생성 스크립트 작성🌱 관련 이슈
🔍 참고사항(선택)
checksum mismatch 에러가 발생할 수 있습니다.새로운 버전 파일(V2, V3, V4)로 관리해야 합니다.📚 기타(선택)