[DEV-57] local 환경 flyway, db 환경 설정 변경 #112
Merged
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.
🚀 작업 내용
flyway 마이그레이션 프로세스 로컬 환경 적용
deleted_at 컬럼 타입 지정
db constraint key 네이밍 컨벤션 적용
🤔 고민했던 내용
기존에 적용하려던 flyway롤백 프로세스는 구현 난이도 뿐만 아니라 롤백 스크립트를 생성하는 리소스가 오히려 더 들거라는 판단이 들어 방법을 수정하였습니다.
이미 개발환경에 반영된 후 마이그레이션 실패를 확인하던 것이 문제라 생각하여 로컬 환경 단계서부터
ddl-auto: create
를 통해 테이블을 생성하는 것이 아닌 로컬환경에서부터 flyway를 통해 ddl을 수정하는 방향으로 변경하여 리스크를 줄이고자 했습니다.💬 리뷰 중점사항