Skip to content
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

Handle ConfigurationPropertyKeys of spring.datasource.* being set and differing #118

Open
aegershman opened this issue Nov 16, 2021 · 0 comments
Labels
discovery Investigate and determine what should be done recipe Recipe requested

Comments

@aegershman
Copy link
Contributor

These mappings are only correct if either
spring.datasource.data- or spring.datasource.schema- are set. If they're both set (and don't differ) it would break the application

The new script-based SQL database initialization does not support using separate credentials for schema (DDL) and data (DML) changes. This reduces complexity and aligns its capabilities with Flyway and Liquibase. If you require separate credentials for schema and data initialization, define your own org.springframework.jdbc.datasource.init.DataSourceInitializer beans.

https://github.com/openrewrite/rewrite-spring/blob/main/src/main/resources/META-INF/rewrite/spring-boot-configuration-migration-manual.yml

@aegershman aegershman added the discovery Investigate and determine what should be done label Nov 16, 2021
@aegershman aegershman self-assigned this Nov 16, 2021
@aegershman aegershman removed their assignment Nov 16, 2021
@sjungling sjungling moved this to Icebox in OpenRewrite Feb 28, 2022
@sjungling sjungling moved this from Icebox to Backlog in OpenRewrite Feb 28, 2022
@tkvangorder tkvangorder moved this from Backlog to Icebox in OpenRewrite Mar 1, 2022
@tkvangorder tkvangorder moved this from Icebox to Backlog in OpenRewrite Mar 1, 2022
@tkvangorder tkvangorder added the recipe Recipe requested label Apr 19, 2022
@tkvangorder tkvangorder moved this from Backlog to Recipes Wanted in OpenRewrite Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discovery Investigate and determine what should be done recipe Recipe requested
Projects
Status: Recipes Wanted
Development

No branches or pull requests

2 participants