• Phillip Webb's avatar
    Allow DB migrations without DataSourceProperties · 8ba45cc6
    Phillip Webb authored
    Update `FlywayAutoConfiguration`, `LiquibaseAutoConfiguration` and
    `DataSourceInitializer` classes so that they no longer depend on
    `DataSourceProperties`. DB migrations can now be performed against
    a `@Bean` defined primary `DataSource` with an alternative
    username/password.
    
    This update also removed using fallback properties when a custom
    connection `url` is defined with Flyway or Liquibase. We now assume
    that `username`, `password` and `driver-class-name` will be provided
    if the default values are unacceptable. Our previous logic was
    particularly flawed if a custom URL caused a change of driver type.
    
    Closes gh-25643
    8ba45cc6
Name
Last commit
Last update
.github Loading commit data...
buildSrc Loading commit data...
ci Loading commit data...
eclipse Loading commit data...
git/hooks Loading commit data...
gradle/wrapper Loading commit data...
idea Loading commit data...
spring-boot-project Loading commit data...
spring-boot-tests Loading commit data...
src Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
SUPPORT.adoc Loading commit data...
build.gradle Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle Loading commit data...