[feat] 운영 환경 Flyway 적용#168
Merged
Merged
Conversation
Closed
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.
🛰️ Issue Number
🪐 작업 내용
운영 환경 (prod)에 Flyway를 적용하기 위해 아래의 작업을 진행했습니다.
Flyway는
Vn__text.sql(언더바 두 개) 형태의 파일을 읽어 데이터베이스에 반영합니다.V1부터 시작해 db/migration 패키지에 위치한 sql 파일들을 차례로 읽어 DB에 반영되지 않은 버전부터 migration을 진행합니다.
n은 각 버전별로 1씩 증가시켜 사용하며 text에 해당 버전에 대한 간략 설명을 적어 사용하면 됩니다.
ex)
V2__add_image_question.sqlV1__init.sql 파일은 기본 테이블 생성 및 PK, UK, FK 설정을 포함했습니다.
📚 Reference
✅ Check List