Polish
This commit is contained in:
@@ -41,7 +41,6 @@ import com.googlecode.flyway.core.Flyway;
|
||||
* {@link EnableAutoConfiguration Auto-configuration} for Flyway database migrations.
|
||||
*
|
||||
* @author Dave Syer
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
@Configuration
|
||||
@@ -74,7 +73,7 @@ public class FlywayAutoConfiguration {
|
||||
boolean exists = false;
|
||||
for (String location : this.properties.getLocations()) {
|
||||
Resource resource = this.resourceLoader.getResource(location);
|
||||
exists = !exists && resource.exists();
|
||||
exists = (!exists && resource.exists());
|
||||
}
|
||||
Assert.state(exists, "Cannot find migrations location in: "
|
||||
+ this.properties.getLocations()
|
||||
|
||||
@@ -41,7 +41,6 @@ import org.springframework.util.Assert;
|
||||
* {@link EnableAutoConfiguration Auto-configuration} for Liquibase.
|
||||
*
|
||||
* @author Marcel Overdijk
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
@Configuration
|
||||
|
||||
@@ -26,7 +26,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
* Configuration properties to configure {@link SpringLiquibase}.
|
||||
*
|
||||
* @author Marcel Overdijk
|
||||
*
|
||||
* @since 1.1.0
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "liquibase", ignoreUnknownFields = false)
|
||||
@@ -41,7 +40,7 @@ public class LiquibaseProperties {
|
||||
|
||||
private String defaultSchema;
|
||||
|
||||
private boolean dropFirst = false;
|
||||
private boolean dropFirst;
|
||||
|
||||
private boolean enabled = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user