Merge pull request #35447 from TheHound

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

Closes gh-35447
This commit is contained in:
Scott Frederick
2023-05-16 15:14:14 -05:00
2 changed files with 2 additions and 1 deletions

View File

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

View File

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