Skip to content

Commit

Permalink
feat: (#561) flyway 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
alsdl0629 committed Feb 24, 2024
1 parent 3d378d6 commit 5d47fd3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,7 @@ object Dependencies {
// notification
const val FCM = "com.google.firebase:firebase-admin:${DependencyVersions.FCM_VERSION}"

// flyway
const val FLYWAY = "org.flywaydb:flyway-mysql:${DependencyVersions.FLYWAY_VERSION}"

}
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/DependencyVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ object DependencyVersions {
const val SENTRY_VERSION = "6.2.1"
const val ASPECTJ_VERSION = "1.9.7"
const val FCM_VERSION = "8.1.0"
const val FLYWAY_VERSION = "10.8.1"
}
5 changes: 5 additions & 0 deletions dms-infrastructure/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ spring:
database-platform: org.hibernate.dialect.MySQL8Dialect
open-in-view: false

flyway:
enabled: true
baseline-on-migrate: true
baseline-version: 0

data:
redis:
port: ${REDIS_PORT:6379}
Expand Down
3 changes: 3 additions & 0 deletions dms-persistence/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ dependencies {

// time based uuid
implementation(Dependencies.UUID_TIME)

// flyway
implementation(Dependencies.FLYWAY)
}

allOpen {
Expand Down

0 comments on commit 5d47fd3

Please sign in to comment.