fix: configure Flyway to use explicit PostgreSQL datasource
All checks were successful
CI / build (push) Successful in 39s
CI / docker (push) Successful in 31s

With two DataSource beans (PostgreSQL + ClickHouse), Flyway was picking
up the ClickHouse DataSource and failing with auth errors. Explicitly
configure Flyway's url/user/password to target PostgreSQL.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-04 22:58:54 +02:00
parent 64a5edac78
commit be4c882ef8
2 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ spring:
url: jdbc:postgresql://localhost:5432/cameleer_saas
username: cameleer
password: cameleer_dev
flyway:
url: jdbc:postgresql://localhost:5432/cameleer_saas
user: cameleer
password: cameleer_dev
cameleer:
clickhouse:

View File

@@ -12,6 +12,9 @@ spring:
flyway:
enabled: true
locations: classpath:db/migration
url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://postgres:5432/cameleer_saas}
user: ${SPRING_DATASOURCE_USERNAME:cameleer}
password: ${SPRING_DATASOURCE_PASSWORD:cameleer_dev}
security:
oauth2:
resourceserver: