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

generateChangeLog fails to include columns in createTable commands

$
0
0
Hello, I'm new to Liquibase and am looking to see how it can be used on an already existing project.  I found the documentation on how to generate a changelog against our existing MySql DB.  But all of my attempts to do so have created changelogs which fail validation as part of a later update/changeLogSync command due to the fact that no column definitions are included in the create table commands.

In case it illuminates a mistake I'm making, there's the command I ran:

>java -jar c:\shortenedPath\liquibase-core-3.5.3.jar --driver=com.mysql.jdbc.Driver --classpath=c:\shortenedPath\mysql-connector-java-5.1.42.jar --changeLogFile=changelog.mysql.xml --url=jdbc:mysql://localhost/mySchema --username=root --password=password --logLevel=DEBUG --defaultSchemaName=mySchema generateChangeLog

and here's a snippet of the generated changelog:

<?xml version="1.1" encoding="UTF-8" standalone="no"?>
    <changeSet author="elumpkin (generated)" id="1517330636868-1">
        <createTable tableName="accesscontrolgroup"/>
    </changeSet>
    <changeSet author="elumpkin (generated)" id="1517330636868-2">
        <createTable tableName="accessgroup"/>
    </changeSet>
    <changeSet author="elumpkin (generated)" id="1517330636868-3">
        <createTable tableName="accountuser"/>
    </changeSet>
    ....
 </databaseChangeLog>

Lastly I'm running this against a local mysql DB which claims to be version 5.6.26-log running on Win7.  Hopefully I'm just doing something wrong/dumb and you can point me in the better direction.  Thanks!

-Erik

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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