fix flyway baseline config
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user