fix: configure Flyway to use explicit PostgreSQL datasource
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:
@@ -5,6 +5,10 @@ spring:
|
|||||||
url: jdbc:postgresql://localhost:5432/cameleer_saas
|
url: jdbc:postgresql://localhost:5432/cameleer_saas
|
||||||
username: cameleer
|
username: cameleer
|
||||||
password: cameleer_dev
|
password: cameleer_dev
|
||||||
|
flyway:
|
||||||
|
url: jdbc:postgresql://localhost:5432/cameleer_saas
|
||||||
|
user: cameleer
|
||||||
|
password: cameleer_dev
|
||||||
|
|
||||||
cameleer:
|
cameleer:
|
||||||
clickhouse:
|
clickhouse:
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ spring:
|
|||||||
flyway:
|
flyway:
|
||||||
enabled: true
|
enabled: true
|
||||||
locations: classpath:db/migration
|
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:
|
security:
|
||||||
oauth2:
|
oauth2:
|
||||||
resourceserver:
|
resourceserver:
|
||||||
|
|||||||
Reference in New Issue
Block a user