Align spring.flyway.execute-in-transaction property with Flyway default
See gh-35447
This commit is contained in:
parent
a2b32cd8bf
commit
7674c55cd7
|
@ -365,7 +365,7 @@ public class FlywayProperties {
|
||||||
/**
|
/**
|
||||||
* Whether Flyway should execute SQL within a transaction.
|
* Whether Flyway should execute SQL within a transaction.
|
||||||
*/
|
*/
|
||||||
private boolean executeInTransaction;
|
private boolean executeInTransaction = true;
|
||||||
|
|
||||||
public boolean isEnabled() {
|
public boolean isEnabled() {
|
||||||
return this.enabled;
|
return this.enabled;
|
||||||
|
|
|
@ -92,6 +92,7 @@ class FlywayPropertiesTests {
|
||||||
assertThat(properties.getPlaceholderSeparator()).isEqualTo(configuration.getPlaceholderSeparator());
|
assertThat(properties.getPlaceholderSeparator()).isEqualTo(configuration.getPlaceholderSeparator());
|
||||||
assertThat(properties.getScriptPlaceholderPrefix()).isEqualTo(configuration.getScriptPlaceholderPrefix());
|
assertThat(properties.getScriptPlaceholderPrefix()).isEqualTo(configuration.getScriptPlaceholderPrefix());
|
||||||
assertThat(properties.getScriptPlaceholderSuffix()).isEqualTo(configuration.getScriptPlaceholderSuffix());
|
assertThat(properties.getScriptPlaceholderSuffix()).isEqualTo(configuration.getScriptPlaceholderSuffix());
|
||||||
|
assertThat(properties.isExecuteInTransaction()).isEqualTo(configuration.isExecuteInTransaction());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue