<dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> <version>5.2.4</version> </dependency>
flyway: baseline-on-migrate: true locations: classpath:/db/migration
nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected applied migration not resolved locallysql
這是由於經過flyway_schema_history
表對本地sql文件進行連續性驗證的結果,關閉驗證便可。api
flyway: baseline-on-migrate: true validate-on-migrate: false locations: classpath:/db/migration