Liquibase差异不显示实际差异

时间:2018-12-13 07:41:16

标签: maven liquibase

尝试使用liquibase取得两个Oracle数据库的差异,但无法这样做。我的意图是采用xml格式的diff。我很好奇为什么changelogFile参数在这里是必需的?我们已经给出了两个数据库的连接细节。请纠正我。感觉我在这里错过了一些非常愚蠢的东西。

    <username>cms</username>
    <password>password</password>
    <url>jdbc:oracle:thin:CMS/password@172.18.41.111:1522/ORCL</url>
    <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
    <diffIncludeObjects>table:${identified.table.names}</diffIncludeObjects>
    <diffTypes>data</diffTypes>
    <defaultSchemaName>cms</defaultSchemaName>
    <changeLogFile>achangelog.xml</changeLogFile>
    <diffChangeLogFile>${output.change.log.file}.xml</diffChangeLogFile>
    <referenceUsername>cms</referenceUsername>
    <referenceDefaultSchemaName>cms</referenceDefaultSchemaName>
    <referenceDriver>oracle.jdbc.OracleDriver</referenceDriver>
    <referencePassword>password</referencePassword>
    <referenceUrl>jdbc:oracle:thin:CMS/password@dockeroup.com:1522/ORCL</referenceUrl>

这是我得到的输出xml:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"/>
~
~
~
~
~

0 个答案:

没有答案