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">
<preConditions onFail="MARK_RAN" onFailMessage="existing table skipping">
<not>
<foreignKeyConstraintExists foreignKeyTableName="FEEDS"
foreignKeyName="FKE50C03F13BFA4D81" />
<primaryKeyExists tableName="FEED_FEEDENTRIES" />
</not>
</preConditions>
<addPrimaryKey columnNames="FEEDENTRY_ID, FEED_ID"