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.
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>