Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Cannot get diff against Hibernate to work in ant

$
0
0
Your <referencedatabase> element is not fully filled out. That element is the same type as a <database> element and takes the same attributes. Something like this:

  1. <target name="diff-against-hibernate">
            <liquibase:diffDatabaseToChangeLog
                    databaseref="my-database"
                    classpathref="mypath.classpath"
                    diffTypes="tables,columns,views">
                <referencedatabase driver="${liquibase.database.driver}" url="${liquibase.persistence.unit}" user="${liquibase.database.username}" password="${liquibase.database.password}"/>
                <txt outputfile="${change_control}/dbupdate/hibernate/${liquibase.hibernate.changelog.file}"/>
            </liquibase:diffDatabaseToChangeLog>
        </target>

See if that helps.


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>