Skip to content

Commit

Permalink
Correctly set default for quarkus.flyway.validate-on-migrate
Browse files Browse the repository at this point in the history
The default value for `quarkus.flyway.validate-on-migrate` was incorrectly set using a plain field default value. While not validated by Quarkus, this actually doesn't have any effect. What is important is setting `ConfigItem#defaultValue`.
  • Loading branch information
knutwannheden authored and fercomunello committed Aug 31, 2022
1 parent 7cfaf49 commit e0d548c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public final class FlywayDataSourceRuntimeConfig {
*
* @return {@link FlywayDataSourceRuntimeConfig}
*/
public static final FlywayDataSourceRuntimeConfig defaultConfig() {
public static FlywayDataSourceRuntimeConfig defaultConfig() {
return new FlywayDataSourceRuntimeConfig();
}

Expand Down Expand Up @@ -126,7 +126,7 @@ public static final FlywayDataSourceRuntimeConfig defaultConfig() {
/**
* Whether to automatically call validate when performing a migration.
*/
@ConfigItem
@ConfigItem(defaultValue = "true")
public boolean validateOnMigrate = true;

/**
Expand Down

0 comments on commit e0d548c

Please sign in to comment.