首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >液化基插件错误迁移失败

液化基插件错误迁移失败
EN

Stack Overflow用户
提问于 2017-09-27 11:05:42
回答 1查看 5.6K关注 0票数 2

我有问题要启动我的Java应用

来自liqibase更新的错误:

代码语言:javascript
复制
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.1:update (default-cli) on project api-manager: Error setting up or running Liquibase: Migration failed for change set db/changelog/1.0/1.0-init-tables.xml::1.0-init-tables::api-manager:
[ERROR] Reason: liquibase.exception.DatabaseException: ERROR: relation "service" does not exist [Failed SQL ..... so on ... so on

pom片段

代码语言:javascript
复制
    <dependency>
        <groupId>org.liquibase</groupId>
        <artifactId>liquibase-core</artifactId>
        <scope>runtime</scope>
    </dependency>

        <plugin>
            <groupId>org.liquibase</groupId>
            <artifactId>liquibase-maven-plugin</artifactId>
            <version>${liquibase-maven-plugin.version}</version>
            <configuration>
                <changeLogFile>db/changelog/db.changelog-master.xml</changeLogFile>
                <driver>${manager.db.driver}</driver>
                <url>${manager.db.url}</url>
                <username>${manager.db.user}</username>
                <password>${manager.db.password}</password>
                <verbose>false</verbose>
                <logging>info</logging>
                <contexts>${manager.db.contexts}</contexts>
                <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
            </configuration>
        </plugin>

resources/db/changelog/db.changelog-master.xml中的db.changelog-master.xml .xml:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>

<databaseChangeLog
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">

    <include file="db/changelog/1.0/1.0-init-tables.xml"/>

</databaseChangeLog>

resources/db/changelog/1.0/1.0-init-tables.xml中的init-tables.xml:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">

    <changeSet id="1.0-init-tables" author="api-manager">
          HERE ARE MINE <CREATE TABLES>
    </changeSet>
</databaseChangeLog>

如果需要sql错误日志,请告诉我,然后我将编辑这个帖子。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-27 11:53:03

如果有人发生了类似的错误,请检查您的表是否低-是的,邮政不喜欢UpperCases。这些变化解决了我的问题

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46446304

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档