Skip to content

Conversation

@dlsrks1021
Copy link
Collaborator

🛰️ Issue Number

🪐 작업 내용

운영 환경 (prod)에 Flyway를 적용하기 위해 아래의 작업을 진행했습니다.

  • build.gradle : Flyway 의존성 추가
  • application.yml : Flyway 설정 추가
  • V1__init.sql : 초기 데이터베이스 DDL 쿼리 설정

Flyway는 Vn__text.sql (언더바 두 개) 형태의 파일을 읽어 데이터베이스에 반영합니다.
V1부터 시작해 db/migration 패키지에 위치한 sql 파일들을 차례로 읽어 DB에 반영되지 않은 버전부터 migration을 진행합니다.

n은 각 버전별로 1씩 증가시켜 사용하며 text에 해당 버전에 대한 간략 설명을 적어 사용하면 됩니다.
ex) V2__add_image_question.sql

V1__init.sql 파일은 기본 테이블 생성 및 PK, UK, FK 설정을 포함했습니다.

📚 Reference

✅ Check List

  • 코드가 정상적으로 컴파일되나요?
  • 테스트 코드를 통과했나요?
  • merge할 브랜치의 위치를 확인했나요?
  • Label을 지정했나요?

@dlsrks1021 dlsrks1021 self-assigned this Jul 30, 2025
@dlsrks1021 dlsrks1021 added the enhancement New feature or request label Jul 30, 2025
@dlsrks1021 dlsrks1021 linked an issue Jul 30, 2025 that may be closed by this pull request
Copy link
Collaborator

@LimKangHyun LimKangHyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!

Copy link
Collaborator

@jiwon1217 jiwon1217 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 !

Copy link
Collaborator

@silver-eunjoo silver-eunjoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 !

@dlsrks1021 dlsrks1021 merged commit ecdd66d into dev Jul 31, 2025
2 checks passed
@dlsrks1021 dlsrks1021 deleted the feat/15 branch July 31, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 운영 환경 Flyway 적용

5 participants