Hello i have a problem using liquibase. I�m using it to use a hibernate files within liquibase as tool. i have a database that was created by a changelogfile automatically generated from some hibernate mappings files with generatechangelog funcionality.
There are some tables that are created and some foreign key,for example :
Then i run the changelog and all is created ok. All tables and foreign keys are created. For some reasons i have to add more hbm files to my database (some files without foereigns keys). I tried to diffchangelog between my new hbms files and my database. All hbm files are the same in both versions the difference is that some hbm files without foreign keys were added (only new tables).
When i do it i obtain a changelog in which besides the changests appear some dropindex changes and new add foreign keys like this:
.
.
.
If i execute it i obtain an error due to foreign key is created. I execute this a simple use of diffdatabasechangelog. what i�m doing wrong? I review all many times, the foreign keys are created, only the table creation would appear.
I execute this:
<diffDatabaseToChangeLog
driver="${database.driver}"
url="${url}"
username="${username}"
password="${password}"
baseUrl=“hibernate:ddl/hibernate.cfg.xml”
outputFile="${basedir}/ddl2/lb/updateBH.changelog.xml"
classpathref="classpath.liquibase >
Thanks you are doing a great work