fix error with postgresql

* postgresql stores foreign key names in lower case by default, so the precondition was erroneously passing
* check for the presence of a primary key instead
This commit is contained in:
MageFroh
2013-07-07 21:44:49 +01:00
parent b5b53da593
commit f1ef5a6b99

View File

@@ -352,8 +352,7 @@
<changeSet author="athou" id="add-keys"> <changeSet author="athou" id="add-keys">
<preConditions onFail="MARK_RAN" onFailMessage="existing table skipping"> <preConditions onFail="MARK_RAN" onFailMessage="existing table skipping">
<not> <not>
<foreignKeyConstraintExists foreignKeyTableName="FEEDS" <primaryKeyExists tableName="FEED_FEEDENTRIES" />
foreignKeyName="FKE50C03F13BFA4D81" />
</not> </not>
</preConditions> </preConditions>
<addPrimaryKey columnNames="FEEDENTRY_ID, FEED_ID" <addPrimaryKey columnNames="FEEDENTRY_ID, FEED_ID"