Skip to content

Default for spring.flway.execute-in-transaction is not aligned with Flyway's default #35447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

TheHound
Copy link
Contributor

FlywayProperties has executeInTransaction default as false, changing the org.flywaydb.core.api.configuration.Configuration#isExecuteInTransaction default. See also org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayConfiguration#configureProperties

Tested in 3.1.0-RC2.

Prior to change with no spring.flyway configuration set

Migrating schema "public" to version "0.0.1.0 - init-tables [non-transactional]"

@pivotal-cla
Copy link

@TheHound Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 16, 2023
@pivotal-cla
Copy link

@TheHound Thank you for signing the Contributor License Agreement!

Copy link
Member

@wilkinsona wilkinsona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this, @TheHound. Could you please also update defaultValuesAreConsistent in FlywayPropertiesTests to assert that the defaults are aligned?

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label May 16, 2023
FlywayProperties has executeInTransaction default as false, changing the org.flywaydb.core.api.configuration.Configuration#isExecuteInTransaction default. See also org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration.FlywayConfiguration#configureProperties
@TheHound TheHound force-pushed the flyway-execute-in-transaction branch from c69602b to 6d8dc49 Compare May 16, 2023 14:52
@TheHound
Copy link
Contributor Author

Updated the commit with extra line in FlywayPropertiesTests#defaultValuesAreConsistent

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels May 16, 2023
@wilkinsona wilkinsona changed the title Restore executeInTransaction to default true Default for spring.flway.execute-in-transaction is not aligned with Flyway's default May 16, 2023
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged status: feedback-provided Feedback has been provided labels May 16, 2023
@wilkinsona wilkinsona added this to the 3.1.x milestone May 16, 2023
Copy link
Member

@wilkinsona wilkinsona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @TheHound.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants