Merge pull request #35447 from TheHound

* pr/35447:
  Align spring.flyway.execute-in-transaction property with Flyway default

Closes gh-35447
pull/35454/head
Scott Frederick 2 years ago
commit 5cfc96afbb

@ -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