我之前使用的版本是1.1.1,今天尝试更新1.3.1失败,经过一番查找发现需要先升级到1.2.x后才能更新到1.3.x,于是我尝试升级1.2.0,但还是报错,信息如下
2020-03-29 23:40:01.909 ERROR 1454 --- [ main] o.s.boot.SpringApplication : Application run failed
org.flywaydb.core.api.FlywayException: Validate failed:
Detected failed migration to version 2 (migrate 1.2.0-beta.1 to 1.2.0-beta.2)
at org.flywaydb.core.Flyway.doValidate(Flyway.java:273) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway.access$100(Flyway.java:72) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:155) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:147) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway.execute(Flyway.java:511) ~[flyway-core-6.1.0.jar!/:na]
at org.flywaydb.core.Flyway.migrate(Flyway.java:147) ~[flyway-core-6.1.0.jar!/:na]
at run.halo.app.listener.StartedListener.migrate(StartedListener.java:86) ~[classes!/:1.2.0]
at run.halo.app.listener.StartedListener.onApplicationEvent(StartedListener.java:58) ~[classes!/:1.2.0]
at run.halo.app.listener.StartedListener.onApplicationEvent(StartedListener.java:33) ~[classes!/:1.2.0]
at run.halo.app.listener.StartedListener$$EnhancerBySpringCGLIB$$b5a3867c.onApplicationEvent(<generated>) ~[classes!/:1.2.0]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.1.RELEASE.jar!/:5.2.1.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:98) ~[spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:71) ~[spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) [spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.1.RELEASE.jar!/:2.2.1.RELEASE]
at run.halo.app.Application.main(Application.java:35) [classes!/:1.2.0]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_232]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_232]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_232]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_232]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [halo-latest.jar:1.2.0]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [halo-latest.jar:1.2.0]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:51) [halo-latest.jar:1.2.0]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52) [halo-latest.jar:1.2.0]
2020-03-29 23:40:01.913 INFO 1454 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'taskScheduler'
2020-03-29 23:40:01.952 INFO 1454 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-03-29 23:40:01.957 INFO 1454 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2020-03-29 23:40:01.993 INFO 1454 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2020-03-29 23:40:01.996 INFO 1454 --- [ main] io.undertow : stopping server: Undertow - 2.0.27.Final
这是什么原因?
我现在回退到1.1.1也不行了
跪求大佬帮忙,让我从1.1.1升级到1.3.1