Skip to content

Commit

Permalink
Merge branch 'update/use-sonatype-scala-libs/non_aws' of https://gith…
Browse files Browse the repository at this point in the history
…ub.com/wellcomecollection/catalogue-pipeline into update/use-sonatype-scala-libs/non_aws
  • Loading branch information
StepanBrychta committed Oct 4, 2024
2 parents 3e8e98b + 730b309 commit a5731a0
Showing 1 changed file with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@ class TableProvisioner(
) {

def provision(): Unit = {
val flyway = Flyway.configure()
val flyway = Flyway
.configure()
.dataSource(
s"jdbc:mysql://${rdsClientConfig.host}:${rdsClientConfig.port}/${pathIdConfig.database}",
rdsClientConfig.username,
rdsClientConfig.password
)
.placeholders(
Map(
"database" -> pathIdConfig.database,
"tableName" -> pathIdConfig.tableName
).asJava
)
s"jdbc:mysql://${rdsClientConfig.host}:${rdsClientConfig.port}/${pathIdConfig.database}",
rdsClientConfig.username,
rdsClientConfig.password
)
.placeholders(
Map(
"database" -> pathIdConfig.database,
"tableName" -> pathIdConfig.tableName
).asJava
)
.load()

flyway.migrate()
Expand Down

0 comments on commit a5731a0

Please sign in to comment.