JHipster alter table error (entity 변경사항이 데이타베이스에 적용 되지 않을때)


liquibase could not start correctly your database is not ready validation failed

liquibase.AsyncSpringLiquibase     : Starting Liquibase asynchronously, your database might not be ready at startup!
2017-01-12 15:22:20.051 ERROR 9464 --- [eapp-Executor-1] b.b.c.liquibase.AsyncSpringLiquibase     : Liquibase could not start correctly, your database is NOT ready: Validation Failed:
     1 change sets check sum



pom.xml의 플러그인 정보에 liquibase 에 대한 데이타베이스 접속 정보를 작성해야 한다.


====================== pom.xml ===================

<plugin>
                <groupId>org.liquibase</groupId>
                <artifactId>liquibase-maven-plugin</artifactId>
                <version>${liquibase.version}</version>
                <configuration>
                    <changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
                    <diffChangeLogFile>src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
                    <driver>org.mariadb.jdbc.Driver</driver>
                    <url>jdbc:mariadb://localhost:3306/baseapp</url>
                    <defaultSchemaName>baseapp</defaultSchemaName>
                    <username>username</username>
                    <password>password</password>
                    <referenceUrl>hibernate:spring:baeyelsoft.bsc.domain?dialect=org.hibernate.dialect.MySQL5InnoDBDialect&amp;hibernate.physical_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy&amp;hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</referenceUrl>
                    <verbose>true</verbose>
                    <logging>debug</logging>
                </configuration>


덧글

  • 마법사 2017/01/12 15:58 # 답글

    이것으로 해결 안됨.
  • 마법사 2017/01/12 15:59 # 답글

    우선 해당 테이블의 checksum 정보를 제거하여 갱신하게 함.
    UPDATE databasechangelog
    SET md5sum=NULL WHERE id = '20170112051251-1';
댓글 입력 영역