1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00
phorge-phorge/resources/sql/autopatches/20150701.herald.2.sql

21 lines
728 B
MySQL
Raw Normal View History

UPDATE {$NAMESPACE}_herald.herald_condition c
JOIN {$NAMESPACE}_herald.herald_rule r
ON c.ruleID = r.id
SET c.fieldName = 'phriction.document.title'
WHERE r.contentType = 'PhrictionDocumentHeraldAdapter'
AND c.fieldName = 'title';
UPDATE {$NAMESPACE}_herald.herald_condition c
JOIN {$NAMESPACE}_herald.herald_rule r
ON c.ruleID = r.id
SET c.fieldName = 'phriction.document.content'
WHERE r.contentType = 'PhrictionDocumentHeraldAdapter'
AND c.fieldName = 'body';
UPDATE {$NAMESPACE}_herald.herald_condition c
JOIN {$NAMESPACE}_herald.herald_rule r
ON c.ruleID = r.id
SET c.fieldName = 'phriction.document.author'
WHERE r.contentType = 'PhrictionDocumentHeraldAdapter'
AND c.fieldName = 'author';