fix flyway baseline config

This commit is contained in:
2026-04-20 05:53:49 -06:00
parent 6e1dfdb79f
commit 164f738776
2 changed files with 2 additions and 3 deletions

View File

@@ -37,7 +37,8 @@ public class FlywayContextInitializer implements ApplicationContextInitializer<C
Flyway flyway = Flyway.configure() Flyway flyway = Flyway.configure()
.dataSource(url, username, password) .dataSource(url, username, password)
.locations(locations) .locations(locations)
.validateOnMigrate(false) .baselineOnMigrate(true)
.baselineVersion("0")
.load(); .load();
flyway.repair(); flyway.repair();
flyway.migrate(); flyway.migrate();

View File

@@ -40,8 +40,6 @@ spring:
flyway: flyway:
enabled: ${FLYWAY_ENABLED:false} enabled: ${FLYWAY_ENABLED:false}
baseline-on-migrate: true
baseline-version: 0
server: server:
port: ${SERVER_PORT:8080} port: ${SERVER_PORT:8080}