File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
flyway/src/main/scala/com/avast/sst/flyway Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,10 @@ lazy val flyway = project
157
157
.settings(BuildSettings .common)
158
158
.settings(
159
159
name := " sst-flyway" ,
160
- libraryDependencies += Dependencies .flywayCore
160
+ libraryDependencies ++= List (
161
+ Dependencies .scalaCollectionCompat,
162
+ Dependencies .flywayCore
163
+ )
161
164
)
162
165
163
166
lazy val flywayPureConfig = project
Original file line number Diff line number Diff line change @@ -22,5 +22,7 @@ final case class FlywayConfig(
22
22
mixed : Boolean = false ,
23
23
locations : List [String ] = List .empty,
24
24
outOfOrder : Boolean = false ,
25
- validateOnMigrate : Boolean = true
25
+ validateOnMigrate : Boolean = true ,
26
+ placeholderReplacement : Boolean = true ,
27
+ placeholders : Map [String , String ] = Map .empty
26
28
)
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import cats.effect.Sync
4
4
import javax .sql .DataSource
5
5
import org .flywaydb .core .Flyway
6
6
7
+ import scala .jdk .CollectionConverters ._
8
+
7
9
object FlywayModule {
8
10
9
11
/** Makes [[org.flywaydb.core.Flyway ]] from the given [[javax.sql.DataSource ]] and config. */
@@ -24,6 +26,8 @@ object FlywayModule {
24
26
.mixed(config.mixed)
25
27
.outOfOrder(config.outOfOrder)
26
28
.validateOnMigrate(config.validateOnMigrate)
29
+ .placeholderReplacement(config.placeholderReplacement)
30
+ .placeholders(config.placeholders.asJava)
27
31
28
32
config.baselineVersion.foreach(builder.baselineVersion)
29
33
config.targetVersion.foreach(builder.target)
You can’t perform that action at this time.
0 commit comments