diffDatabase Ant Task

Outputs a diff report of the difference between two databases.

Sample

<target name="diff-database" depends="prepare">
 
    <taskdef resource="liquibasetasks.properties">
        <classpath refid="classpath"/>
 
    </taskdef>
 
    <diffDatabase
            driver="${database.driver}"
            url="${database.url}"
            username="${database.username}"
            password="${database.password}"
 
            baseUrl="${database.url}"
            baseUsername="${database.username}"
            basePassword="${database.password}"
 
            outputFile="path/to/outputfile.txt"
            classpathref="classpath"
            >
    </diffDatabase>
</target>

Available Parameters

driver The name of the database driver to connect with
url The target database URL [required]
username The target database username to connect with [required]
password The target database password [required]
defaultSchemaName Schema to use by default for managed database objects and LiquiBase control tables
baseDriver The name of the database driver to connect with
baseUrl The base database URL [required]
baseUsername The base database username to connect with [required]
basePassword The base database password [required]
baseDefaultSchemaName Schema to use by default for managed database objects and LiquiBase control tables
outputFile Location of file to save report to [required]
classpathref A reference to the classpath that contains the database driver, liquibase.jar, and the changelog.xml file [required]
databaseChangeLogTableName Overrides the name of the databasechangelog table to use Since LiquiBase 1.9
databaseChangeLogLockTableName Overrides the name of the databasechangeloglock table to use Since LiquiBase 1.9

Available Sub Tags

changeLogProperty Sets a changelog parameters set Since LiquiBase 1.7

Available <changeLogProperty> Parameters

name The name of the property to set
value The value of the property to set