Files
CustomAuthenticationEntryPoint/db
Hanbin Lee 7b5135c109 [#38] feat: 정리
- flyway README 파일 따로 구성
- flyway 관련 기존 gradle 설정 제거
- Jenkinsfile 내용 복구 및 리팩토링
2023-03-12 19:42:06 +09:00
..
2023-03-12 19:42:06 +09:00

DB Migration

📌 Installation

$ brew install flyway
  • macOS 전용

📌 Flyway Command

  • Clean
    Drops all objects (tables, views, procedures, triggers, …) in the configured schemas
    (prodution 단계에서는 절대 사용 X)
$ flyway clean -configFiles=db/flyway.conf
  • Info
    Prints the details and status information about all the migrations
$ flyway info -configFiles=db/flyway.conf
  • Migrate
    Migrates the schema to the latest version migration 설정 내용들 반영
$ flyway migrate -configFiles=db/flyway.conf
  • Validate
    Validates the applied migrations against the available ones
    DB에 적용된 migration과 local에 적용된 migration 정보 일치 여부 체크
$ flyway validate -configFiles=db/flyway.conf