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
ab21b55d
Commit
ab21b55d
authored
Oct 28, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Upgrade to Flyway 7.1.0"
This reverts commit
a6c6aba4
. See gh-23932
parent
d43760ba
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
24 deletions
+1
-24
FlywayAutoConfiguration.java
...rk/boot/autoconfigure/flyway/FlywayAutoConfiguration.java
+0
-3
FlywayProperties.java
...framework/boot/autoconfigure/flyway/FlywayProperties.java
+0
-13
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+0
-4
FlywayPropertiesTests.java
...work/boot/autoconfigure/flyway/FlywayPropertiesTests.java
+0
-3
build.gradle
spring-boot-project/spring-boot-dependencies/build.gradle
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java
View file @
ab21b55d
...
@@ -173,9 +173,6 @@ public class FlywayAutoConfiguration {
...
@@ -173,9 +173,6 @@ public class FlywayAutoConfiguration {
map
.
from
(
locations
).
to
(
configuration:
:
locations
);
map
.
from
(
locations
).
to
(
configuration:
:
locations
);
map
.
from
(
properties
.
getEncoding
()).
to
(
configuration:
:
encoding
);
map
.
from
(
properties
.
getEncoding
()).
to
(
configuration:
:
encoding
);
map
.
from
(
properties
.
getConnectRetries
()).
to
(
configuration:
:
connectRetries
);
map
.
from
(
properties
.
getConnectRetries
()).
to
(
configuration:
:
connectRetries
);
// No method reference for compatibility with Flyway 6.x
map
.
from
(
properties
.
getLockRetryCount
())
.
to
((
lockRetryCount
)
->
configuration
.
lockRetryCount
(
lockRetryCount
));
// No method reference for compatibility with Flyway 5.x
// No method reference for compatibility with Flyway 5.x
map
.
from
(
properties
.
getDefaultSchema
()).
to
((
schema
)
->
configuration
.
defaultSchema
(
schema
));
map
.
from
(
properties
.
getDefaultSchema
()).
to
((
schema
)
->
configuration
.
defaultSchema
(
schema
));
map
.
from
(
properties
.
getSchemas
()).
as
(
StringUtils:
:
toStringArray
).
to
(
configuration:
:
schemas
);
map
.
from
(
properties
.
getSchemas
()).
as
(
StringUtils:
:
toStringArray
).
to
(
configuration:
:
schemas
);
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java
View file @
ab21b55d
...
@@ -64,11 +64,6 @@ public class FlywayProperties {
...
@@ -64,11 +64,6 @@ public class FlywayProperties {
*/
*/
private
int
connectRetries
;
private
int
connectRetries
;
/**
* Maximum number of retries when trying to obtain a lock.
*/
private
Integer
lockRetryCount
;
/**
/**
* Default schema name managed by Flyway (case-sensitive).
* Default schema name managed by Flyway (case-sensitive).
*/
*/
...
@@ -368,14 +363,6 @@ public class FlywayProperties {
...
@@ -368,14 +363,6 @@ public class FlywayProperties {
this
.
connectRetries
=
connectRetries
;
this
.
connectRetries
=
connectRetries
;
}
}
public
Integer
getLockRetryCount
()
{
return
this
.
lockRetryCount
;
}
public
void
setLockRetryCount
(
Integer
lockRetryCount
)
{
this
.
lockRetryCount
=
lockRetryCount
;
}
public
String
getDefaultSchema
()
{
public
String
getDefaultSchema
()
{
return
this
.
defaultSchema
;
return
this
.
defaultSchema
;
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
ab21b55d
...
@@ -856,10 +856,6 @@
...
@@ -856,10 +856,6 @@
"classpath:db/migration"
"classpath:db/migration"
]
]
},
},
{
"name"
:
"spring.flyway.lock-retry-count"
,
"defaultValue"
:
50
},
{
{
"name"
:
"spring.flyway.sql-migration-suffix"
,
"name"
:
"spring.flyway.sql-migration-suffix"
,
"type"
:
"java.lang.String"
,
"type"
:
"java.lang.String"
,
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayPropertiesTests.java
View file @
ab21b55d
...
@@ -51,9 +51,6 @@ class FlywayPropertiesTests {
...
@@ -51,9 +51,6 @@ class FlywayPropertiesTests {
.
isEqualTo
(
configuration
.
getLocations
());
.
isEqualTo
(
configuration
.
getLocations
());
assertThat
(
properties
.
getEncoding
()).
isEqualTo
(
configuration
.
getEncoding
());
assertThat
(
properties
.
getEncoding
()).
isEqualTo
(
configuration
.
getEncoding
());
assertThat
(
properties
.
getConnectRetries
()).
isEqualTo
(
configuration
.
getConnectRetries
());
assertThat
(
properties
.
getConnectRetries
()).
isEqualTo
(
configuration
.
getConnectRetries
());
// Can't assert lock retry count default as it is new in Flyway 7.1
// Asserting hard-coded value in the metadata instead
assertThat
(
configuration
.
getLockRetryCount
()).
isEqualTo
(
50
);
assertThat
(
properties
.
getDefaultSchema
()).
isEqualTo
(
configuration
.
getDefaultSchema
());
assertThat
(
properties
.
getDefaultSchema
()).
isEqualTo
(
configuration
.
getDefaultSchema
());
assertThat
(
properties
.
getSchemas
()).
isEqualTo
(
Arrays
.
asList
(
configuration
.
getSchemas
()));
assertThat
(
properties
.
getSchemas
()).
isEqualTo
(
Arrays
.
asList
(
configuration
.
getSchemas
()));
assertThat
(
properties
.
isCreateSchemas
()).
isEqualTo
(
configuration
.
getCreateSchemas
());
assertThat
(
properties
.
isCreateSchemas
()).
isEqualTo
(
configuration
.
getCreateSchemas
());
...
...
spring-boot-project/spring-boot-dependencies/build.gradle
View file @
ab21b55d
...
@@ -304,7 +304,7 @@ bom {
...
@@ -304,7 +304,7 @@ bom {
]
]
}
}
}
}
library
(
"Flyway"
,
"7.
1.0
"
)
{
library
(
"Flyway"
,
"7.
0.4
"
)
{
group
(
"org.flywaydb"
)
{
group
(
"org.flywaydb"
)
{
modules
=
[
modules
=
[
"flyway-core"
"flyway-core"
...
...
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