Open fabapp2 opened 2 years ago
The renamed properties have mostly been picked up automatically from the exposed configuration metadata: https://github.com/openrewrite/rewrite-spring/blob/b13ef1ddf0767573346f986457b9c196721ee524/src/main/resources/META-INF/rewrite/spring-boot-25-properties.yml#L40-L72
I'm doubtful that we still want to add that @ConditionalOnProperty(...) DataSourceInitializer
now, and lean towards closing this issue. What are your thoughts on that @fabapp2 ?
Release Notes 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.Condition
spring.datasource.schema
andspring.datasource.data
existspring.datasource.schema
and fileclasspath:/**/data.sql
existspring.datasource.data
and fileclasspath:/**/schema.sql
existclasspath:/**/schema.sql
andclasspath:/**/data.sql
existspring.datasource.schema-username
andspring.datasource.schema-password
existRecipe
boot-2.4-2.5-datasource-initializer
Actions
spring.datasource.data-username
existsspring.sql.init.username
spring.datasource.schema-username
existsspring.datasource.schema
existsspring.sql.init.schema-locations
spring.sql.init.data-locations
DataSourceInitializer
bean config which conditional on propertyspring.datasource.schema-username
spring.datasource.schema-username
andspring.datasource.schema-password
as credentials and files fromspring.sql.init.schema-locations
if the property is set or the path forschema.sql
if the property is not set.