includeAll of changelog files throws duplicate identifiers error

Description

Reported at http://forum.liquibase.org/topic/duplicate-identifiers-using-includeall-tag-liquibase-3-no-rc-or-beta

i'm new to liquibase and already read the Quick-Start-Guide, Best Practices and Oracle Tutorial. At the moment i'm struggling with the <includeAll> tag for the changelog. If i'm using the <includeAll> tag it always says:

DEBUG 19.06.13 17:06:liquibase: Unable to load/access Apache Derby driver classto check version
DEBUG 19.06.13 17:06:liquibase: Connected to someuser@jdbc:oracle:thin:@localhost:1521:service_name
DEBUG 19.06.13 17:06:liquibase: Setting auto commit to false from true
DEBUG 19.06.13 17:06:liquibase: includeAll for install/data/
DEBUG 19.06.13 17:06:liquibase: Using file opener for includeAll: liquibase.resource.CompositeResourceAccessor(
liquibase.resource.FileSystemResourceAccessor(C:\Project_Path\.),liquibase.integration.commandline.CommandLineResourceAccessor(...... lib/ojdbc6.jar))
DEBUG 19.06.13 17:06:liquibase: includeAll using path C:\Project_Path\install\data\changelog-data.xml
Validation Error:
1 change sets had duplicate identifiers
install/data/changelog-data.xml::1::wild.a
Liquibase 'validate' Successful

This is a slightly modified log. The whole files to reproduce are included in the database.zip which can be downloaded here:

https://docs.google.com/file/d/0B8W-n_j7omQ4UUhzQjdrdnlMdk0/edit?usp=sharing

You only have to modify liquibase.properties for correct connection info.

The curious thing is that the following line work.

Copy code
<include relativeToChangelogFile="true" file="install/data/changelog-data.xml"/>

While this line won't work.

Copy code
<includeAll relativeToChangelogFile="true" path="install/data/"/>
So how can i make use of <includeAll> but don't have this duplicate identifier problem?

Environment

When using an includeAll

Activity

Show:

Nathan Voxland June 26, 2013 at 2:09 PM

Fixed bug. Included changelog files were being added twice as they were read.

Fixed

Details

Reporter

Fix versions

Affects versions

Priority

Created June 26, 2013 at 2:08 PM
Updated June 26, 2013 at 2:09 PM
Resolved June 26, 2013 at 2:09 PM

Flag notifications