fix flyway baseline config
This commit is contained in:
@@ -37,7 +37,8 @@ public class FlywayContextInitializer implements ApplicationContextInitializer<C
|
||||
Flyway flyway = Flyway.configure()
|
||||
.dataSource(url, username, password)
|
||||
.locations(locations)
|
||||
.validateOnMigrate(false)
|
||||
.baselineOnMigrate(true)
|
||||
.baselineVersion("0")
|
||||
.load();
|
||||
flyway.repair();
|
||||
flyway.migrate();
|
||||
|
||||
@@ -40,8 +40,6 @@ spring:
|
||||
|
||||
flyway:
|
||||
enabled: ${FLYWAY_ENABLED:false}
|
||||
baseline-on-migrate: true
|
||||
baseline-version: 0
|
||||
|
||||
server:
|
||||
port: ${SERVER_PORT:8080}
|
||||
|
||||
Reference in New Issue
Block a user