Hi,
I have been creating some extension for Oracle DB, most of all new specialised tags (not defined in LiquideBase, for example CREATE TRIGGER and DROP TRIGGER for Oracle). Everything work fine until I added tag ADD PRIMARY KEY which is defined in LiquideBase (I wanted to extend this tag by adding attributes: DEFERRABLE and INITIALLYDEFERRED).
What’s my problem?
- http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:ora="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog ../../../../../java/liquibase/ext/ora/xml/dbchangelog-2.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext ../../../../../java/liquibase/ext/ora/xml/dbchangelog-ext.xsd">
In this case ADD PRIMARY KEY should be created by rules from LiquiBase, but classes from extension are used (package liquibase.ext.ora.addprimarykey;)
I suppose that it doesn’t work because classes names in LiquiBase and my extension are same (but package is different!). Because of that, classes from extensin override classes from LiquiBase and tag is maintained by extension classes.
Is there any way I should follow? Do I have to rename my tag and classes names?
dalt