Maybe I’m just missing something, but I can’t get a tag to accept a context. I’m using liquibase 2.0.5 and have the following as a sample changeLog that illustrates the problem:
<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">
<append value="IN STX_${SCHEMA}TRNHIST INDEX IN SIX${SCHEMA}_TRNHIST DISTRI
BUTE BY HASH(THIST_CARD_NUM) COMPRESS YES VALUE COMPRESSION"/>
When I run the above changeLog, I get the following error:
SEVERE 1/29/13 9:54 AM:liquibase: cvc-complex-type.3.2.2: Attribute ‘context’ is not allowed to appear in element ‘modifySql’.
However, if I remove the context parameter, it works fine.
I have tried it both with and without the dbms parameter, and as ‘contexts’ instead of ‘context’ (just in case the documentation was wrong.
Based on some posts, it appears that some people are getting context to work on , so I’m afraid I’m missing some little bit of knowledge on how to make it work.