gpt4 book ai didi

java - 值 'CONTINUE' 不是运行 liquibase 时的 facet-valid 错误

转载 作者:行者123 更新时间:2023-11-29 12:43:07 24 4
gpt4 key购买 nike

当我尝试运行以下命令时:

java -jar liquibase-3.4.1.jar --classpath=postgresql-9.2-1004.jdbc4.jar --logLevel=severe --url=jdbc:postgresql://localhost/raritan --username=<USER>--password=<PWD> --changeLogFile=master_changelog.xml update

我得到以下异常:

    SEVERE 8/29/16 12:46 PM: liquibase: Error parsing line 7 column 35 of changelogdropViews.xml: cvc-enumeration-valid: Value 'CONTINUE' is not facet-valid withespect to enumeration '[HALT, WARN]'. It must be a value from the enumeration. liquibase.exception.ChangeLogParseException: iquibase.exception.SetupException
Error parsing line 7 column 35 of changelog_dropViews.xml: cvc-enumeration-val
d: Value 'CONTINUE' is not facet-valid with respect to enumeration '[HALT, WARN
'. It must be a value from the enumeration.

这是我的更新日志文件:

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

<preConditions onFail="CONTINUE">
<sqlCheck expectedResult="1">select count(1) from pg_extension where extname='plsh'</sqlCheck>
</preConditions>

最佳答案

请参阅先决条件文档: http://www.liquibase.org/documentation/preconditions.html

上面写着:

Outside a changeset (e.g. at the beginning of the change log), only HALT and WARN are possible values.

关于java - 值 'CONTINUE' 不是运行 liquibase 时的 facet-valid 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39211306/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com