Align spring.flyway.execute-in-transaction property with Flyway default

See gh-35447
pull/35454/head
Ben Gilbert 2 years ago committed by Scott Frederick
parent a2b32cd8bf
commit 7674c55cd7

@ -365,7 +365,7 @@ public class FlywayProperties {
/**
* Whether Flyway should execute SQL within a transaction.
*/
private boolean executeInTransaction;
private boolean executeInTransaction = true;
public boolean isEnabled() {
return this.enabled;

@ -92,6 +92,7 @@ class FlywayPropertiesTests {
assertThat(properties.getPlaceholderSeparator()).isEqualTo(configuration.getPlaceholderSeparator());
assertThat(properties.getScriptPlaceholderPrefix()).isEqualTo(configuration.getScriptPlaceholderPrefix());
assertThat(properties.getScriptPlaceholderSuffix()).isEqualTo(configuration.getScriptPlaceholderSuffix());
assertThat(properties.isExecuteInTransaction()).isEqualTo(configuration.isExecuteInTransaction());
}
@Test

Loading…
Cancel
Save