diffChangeLog creates invalid changeTable

Description

I have a database with one table and I am trying to create a changeSet for a new table using a diff against another db.

The created changeSet is invalid, it is self-closed tag <createTable tableName="t_units"/> followed by another changeSet that adds primary key. According to latest xsd, the createTable tag must have at least one child tag column.

I have attached repeatable script demonstrating the issue, the validation ends with:
C:\tmp\db>liquibase.exe validate
Unexpected error running Liquibase: cvc-complex-type.2.4.b: The content of element 'createTable' is not complete. One of '{"http://www.liquibase.org/xml/ns/dbchangelog":column}' is expected.

Invalid changeset:
<changeSet author="Honza (generated)" id="1405112287148-1">
<createTable tableName="t_units"/>
</changeSet>

Environment

Win 7, 64 bit, sqlite-jdbc-3.7.2

Attachments

3

Activity

Show:

WillC November 4, 2014 at 2:53 AM

This bug also affects me. I'm Running Version: 3.3.0 on Ubuntu 14.04.

Details

Reporter

Components

Fix versions

Affects versions

Priority

Created July 11, 2014 at 9:07 PM
Updated March 14, 2016 at 3:47 PM