I have a spring roo hibernate project and a MySql database and I want to use liquibase for managing migrations.
I generated the initial changelog and did a changelogSync to mark all the changelogs as applied. Now when i did a diff (without modifying anything), I expected the diff to be empty. However it dropped all the existing tables and created new ones with different names.
Eg. One sample changeSet with generateChangeLog:
<changeSet author="author (generated)" id="1437392254522-37">
<createTable tableName="user_roles">
<column name="user" type="BIGINT(19)">
<constraints nullable="false"/>
</column>
<column name="roles" type="BIGINT(19)">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
changeSet with diff:
<changeSet author="author (generated)" id="1437395711084-26">
<createTable tableName="User_Role">
<column name="User_id" type="BIGINT">
<constraints nullable="false"/>
</column>
<column name="roles_id" type="BIGINT">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
Is there any setting that I am missing?