jgruhl
December 1, 2009, 6:19pm
1
I am running liquibase 1.9.5 and I have the following change log file:
<databaseChangeLog
xmlns=“http://www.liquibase.org/xml/ns/dbchangelog/1.8”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://www.liquibase.org/xml/ns/dbchangelog/1.8
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.8.xsd”>
When I run this I get the following error:
Migration Failed: cvc-complex-type.3.2.2: Attribute ‘relativeToChangelogFile’ is not allowed to appear in element ‘include’.
Does anyone have any ideas here? Is this attribute deprecated?
jgruhl
December 1, 2009, 6:19pm
2
I solved the issue. My databaseChangeLog was referring to the 1.8 versions of the xml namespaces and schema and they should have been referring to 1.9.
My original doc:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns=“http://www.liquibase.org/xml/ns/dbchangelog/1.8”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://www.liquibase.org/xml/ns/dbchangelog/1.8
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.8.xsd”>
After the change:
<?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”>
Glad you found the issue. Thanks for letting us know.
Nathan