如何解决“验证失败:检测到迁移到版本1(BASELINE)失败”的飞行路线错误?

时间:2019-05-08 10:31:44

标签: java flyway

我导入了具有创建应用程序表的数据集。但是,当我尝试启动服务器以及在进行耳部部署时,我遇到了Flyway迁移错误。错误是:

Database migration failed.: org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1 (BASELINE)

我检查了dev.xml中所有数据库信息的正确性,并检查了flyway_schema_history中的错误,但均不存在。

我以前见过一个通讯链接错误,但现在已经消失了。有人可以因为我不觉得任何脚本(包括BASELINE)正在运行而对这个问题有所了解吗?

错误的堆栈跟踪:

2019-04-10 16:54:48,544 ERROR [com.cognitran.isis.model.migration.TopixFlywayIntegrator] (ServerService Thread Pool -- 2) Database migration failed.: org.flywaydb.core.api.FlywayException: Validate failed: Detected >failed migration to version 1 (BASELINE)```
    at org.flywaydb.core.Flyway.doValidate(Flyway.java:1375)
    at org.flywaydb.core.Flyway.access$100(Flyway.java:82)
    at org.flywaydb.core.Flyway$1.execute(Flyway.java:1257)
    at org.flywaydb.core.Flyway$1.execute(Flyway.java:1249)
    at org.flywaydb.core.Flyway.execute(Flyway.java:1604)
    at org.flywaydb.core.Flyway.migrate(Flyway.java:1249)

0 个答案:

没有答案