Created
August 30, 2021 12:37
-
-
Save keomony/a9360dc1fb56b10e30364003e86bf422 to your computer and use it in GitHub Desktop.
Detected failed migration to version 010 (RENAME PUBLISHER BOOK CONSTRAINTS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-08-30 13:00:29.032 INFO 15385 --- [ main] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 7.5.4 by Redgate | |
2021-08-30 13:00:29.037 INFO 15385 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... | |
2021-08-30 13:00:29.418 INFO 15385 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. | |
2021-08-30 13:00:29.449 INFO 15385 --- [ main] o.f.c.i.database.base.DatabaseType : Database: jdbc:mysql://localhost:3307/booksapi (MySQL 8.0) | |
2021-08-30 13:00:29.582 WARN 15385 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation | |
Detected failed migration to version 010 (RENAME PUBLISHER BOOK CONSTRAINTS). Please remove any half-completed changes then run repair to fix the schema history. | |
2021-08-30 13:00:29.583 INFO 15385 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... | |
2021-08-30 13:00:29.625 INFO 15385 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. | |
2021-08-30 13:00:29.631 INFO 15385 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] | |
2021-08-30 13:00:29.646 INFO 15385 --- [ main] ConditionEvaluationReportLoggingListener : | |
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. | |
2021-08-30 13:00:29.668 ERROR 15385 --- [ main] o.s.boot.SpringApplication : Application run failed | |
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation | |
Detected failed migration to version 010 (RENAME PUBLISHER BOOK CONSTRAINTS). Please remove any half-completed changes then run repair to fix the schema history. | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1786) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:602) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1153) ~[spring-context-5.3.4.jar:5.3.4] | |
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:907) ~[spring-context-5.3.4.jar:5.3.4] | |
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:582) ~[spring-context-5.3.4.jar:5.3.4] | |
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.3.jar:2.4.3] | |
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) ~[spring-boot-2.4.3.jar:2.4.3] | |
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) ~[spring-boot-2.4.3.jar:2.4.3] | |
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) ~[spring-boot-2.4.3.jar:2.4.3] | |
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) ~[spring-boot-2.4.3.jar:2.4.3] | |
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1311) ~[spring-boot-2.4.3.jar:2.4.3] | |
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) ~[spring-boot-2.4.3.jar:2.4.3] | |
at com.karankumar.booksapi.BooksApiApplication.main(BooksApiApplication.java:37) ~[main/:na] | |
Caused by: org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation | |
Detected failed migration to version 010 (RENAME PUBLISHER BOOK CONSTRAINTS). Please remove any half-completed changes then run repair to fix the schema history. | |
at org.flywaydb.core.Flyway$1.execute(Flyway.java:173) ~[flyway-core-7.5.4.jar:na] | |
at org.flywaydb.core.Flyway$1.execute(Flyway.java:165) ~[flyway-core-7.5.4.jar:na] | |
at org.flywaydb.core.Flyway.execute(Flyway.java:570) ~[flyway-core-7.5.4.jar:na] | |
at org.flywaydb.core.Flyway.migrate(Flyway.java:165) ~[flyway-core-7.5.4.jar:na] | |
at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66) ~[spring-boot-autoconfigure-2.4.3.jar:2.4.3] | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1845) ~[spring-beans-5.3.4.jar:5.3.4] | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1782) ~[spring-beans-5.3.4.jar:5.3.4] | |
... 19 common frames omitted | |
Process finished with exit code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment