Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
dcc6d8d6
Commit
dcc6d8d6
authored
Oct 28, 2017
by
Eddú Meléndez
Committed by
Andy Wilkinson
Nov 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align default of flyway.check-location with equivalent Liquibase prop
Closes gh-10807
parent
8eae3724
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
FlywayProperties.java
...framework/boot/autoconfigure/flyway/FlywayProperties.java
+2
-1
FlywayAutoConfigurationTests.java
...ot/autoconfigure/flyway/FlywayAutoConfigurationTests.java
+2
-4
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java
View file @
dcc6d8d6
...
...
@@ -31,6 +31,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* properties into the {@link Flyway} instance.
*
* @author Dave Syer
* @author Eddú Meléndez
* @since 1.1.0
*/
@ConfigurationProperties
(
prefix
=
"spring.flyway"
,
ignoreUnknownFields
=
true
)
...
...
@@ -46,7 +47,7 @@ public class FlywayProperties {
/**
* Check that migration scripts location exists.
*/
private
boolean
checkLocation
=
fals
e
;
private
boolean
checkLocation
=
tru
e
;
/**
* Enable flyway.
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfigurationTests.java
View file @
dcc6d8d6
...
...
@@ -173,8 +173,7 @@ public class FlywayAutoConfigurationTests {
public
void
checkLocationsAllMissing
()
{
this
.
contextRunner
.
withUserConfiguration
(
EmbeddedDataSourceConfiguration
.
class
)
.
withPropertyValues
(
"spring.flyway.locations:classpath:db/missing1,classpath:db/migration2"
,
"spring.flyway.check-location:true"
)
"spring.flyway.locations:classpath:db/missing1,classpath:db/migration2"
)
.
run
((
context
)
->
{
assertThat
(
context
).
hasFailed
();
assertThat
(
context
).
getFailure
()
...
...
@@ -188,8 +187,7 @@ public class FlywayAutoConfigurationTests {
public
void
checkLocationsAllExist
()
{
this
.
contextRunner
.
withUserConfiguration
(
EmbeddedDataSourceConfiguration
.
class
)
.
withPropertyValues
(
"spring.flyway.locations:classpath:db/changelog,classpath:db/migration"
,
"spring.flyway.check-location:true"
)
"spring.flyway.locations:classpath:db/changelog,classpath:db/migration"
)
.
run
((
context
)
->
assertThat
(
context
).
hasNotFailed
());
}
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
dcc6d8d6
...
...
@@ -487,7 +487,7 @@ content into your application; rather pick only the properties that you need.
spring.flyway.baseline-description= #
spring.flyway.baseline-on-migrate= #
spring.flyway.baseline-version=1 # version to start migration
spring.flyway.check-location=
fals
e # Check that migration scripts location exists.
spring.flyway.check-location=
tru
e # Check that migration scripts location exists.
spring.flyway.clean-disabled= #
spring.flyway.clean-on-validation-error= #
spring.flyway.enabled=true # Enable flyway.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment