Skip to content

Commit

Permalink
fix: Remove Flyway options available only in paid version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubjanecek committed Oct 24, 2019
1 parent 11bbc9f commit abf3848
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ final case class FlywayConfig(baselineOnMigrate: Boolean = false,
baselineVersion: Option[MigrationVersion] = None,
targetVersion: Option[MigrationVersion] = None,
baselineDescription: Option[String] = None,
batch: Boolean = false,
cleanDisabled: Boolean = false,
cleanOnValidationError: Boolean = false,
connectRetries: Int = 0,
Expand All @@ -22,5 +21,4 @@ final case class FlywayConfig(baselineOnMigrate: Boolean = false,
mixed: Boolean = false,
locations: List[String] = List.empty,
outOfOrder: Boolean = false,
validateOnMigrate: Boolean = true,
licenseKey: Option[String] = None)
validateOnMigrate: Boolean = true)
3 changes: 0 additions & 3 deletions flyway/src/main/scala/com/avast/sst/flyway/FlywayModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ object FlywayModule {
.configure
.dataSource(dataSource)
.baselineOnMigrate(config.baselineOnMigrate)
.batch(config.batch)
.cleanDisabled(config.cleanDisabled)
.cleanOnValidationError(config.cleanOnValidationError)
.connectRetries(config.connectRetries)
Expand All @@ -34,8 +33,6 @@ object FlywayModule {
config.installedBy.foreach(builder.installedBy)
if (config.locations.nonEmpty) builder.locations(config.locations: _*)

config.licenseKey.foreach(builder.licenseKey)

builder.load()
}
}
Expand Down

0 comments on commit abf3848

Please sign in to comment.