|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
New Topic: Add Primary Key - extension tagA new topic, 'Add Primary Key - extension tag', has been made on a board you are watching.
You can see it at http://liquibase.org/forum/index.php?topic=97.new#new The text of the topic is shown below: 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? Code: <databaseChangeLog xmlns="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"> <changeSet id="2" author="author01"> <!-- my extension --> <!-- <ora:addPrimaryKey tableName="AddPrimaryKeyTest" columnNames="id" deferrable="true" initiallyDeferred="true" constraintName="PK_AddPrimaryKeyTest"/> --> <!-- LiquiBase --> <addPrimaryKey tableName="AddPrimaryKeyTest" columnNames="id" /> </changeSet> 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 <addPrimaryKey tableName="AddPrimaryKeyTest" columnNames="id" /> is maintained by extension classes. Is there any way I should follow? Do I have to rename my tag and classes names? dalt Unsubscribe to new topics from this board by clicking here: http://liquibase.org/forum/index.php?action=notifyboard;board=2.0 Regards, The LiquiBase Community Forum Team. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Liquibase-devel mailing list Liquibase-devel@... https://lists.sourceforge.net/lists/listinfo/liquibase-devel |
| Free embeddable forum powered by Nabble | Forum Help |