I simply created a database with one simple table (user) and then run the
generateChangelog command on it
Here's what I'm getting
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.liquibase.org/xml/ns/dbchangelog/1.9
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
<changeSet author="user (generated)" id="1239198346828-1">
<createTable tableName="user">
<column name="id" type="INT">
<constraints nullable="false" primaryKey="true"/>
</column>
<column name="email" type="VARCHAR(60)"/>
<column name="name" type="VARCHAR(60)"/>
</createTable>
</changeSet>
<changeSet author="user (generated)" id="1239198346828-2">
<createIndex indexName="PRIMARY" tableName="user" unique="true"/>
</changeSet>
</databaseChangeLog>
The 'createIndex' element does not contain a 'column' nested element. Seems
like a bug. Please help if I'm doing something wrong. I can share the small
project I've created to replicate the results if needed.
Thanks
Animesh
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Liquibase-user mailing list
Liquibase-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/liquibase-user