pgSQL rejected the update lines in populate-status-xxx change sets

Error executing SQL update FEEDENTRYSTATUSES s SET s.entryUpdated = (select e.updated from FEEDENTRIES e where e.id = s.entry_id):
ERROR: column "s" of relation "feedentrystatuses" does not exist
This commit is contained in:
MageFroh
2013-07-14 16:08:37 +01:00
parent 2bc53bd2e1
commit 2f779cbd9d

View File

@@ -291,11 +291,11 @@
</changeSet>
<changeSet author="athou" id="populate-status-dates">
<sql>update FEEDENTRYSTATUSES s SET s.entryUpdated = (select e.updated from FEEDENTRIES e where e.id = s.entry_id)</sql>
<sql>update FEEDENTRYSTATUSES SET entryUpdated = (select e.updated from FEEDENTRIES e where e.id = FEEDENTRYSTATUSES.entry_id)</sql>
</changeSet>
<changeSet author="athou" id="populate-status-users">
<sql>update FEEDENTRYSTATUSES s SET s.user_id = (select sub.user_id from FEEDSUBSCRIPTIONS sub where sub.id = s.subscription_id)</sql>
<sql>update FEEDENTRYSTATUSES SET user_id = (select sub.user_id from FEEDSUBSCRIPTIONS sub where sub.id = FEEDENTRYSTATUSES.subscription_id)</sql>
</changeSet>
<changeSet author="athou" id="recreate-fes-index-2">