mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 05:02:44 +01:00
68de3dae9a
Summary: Ref T8726. Test Plan: - Created a rule using all the fields. - Updated documents, saw rule apply, reviewed transcript. - Migrated stuff. Reviewers: btrahan Reviewed By: btrahan Subscribers: eadler, epriestley Maniphest Tasks: T8726 Differential Revision: https://secure.phabricator.com/D13514
20 lines
728 B
SQL
20 lines
728 B
SQL
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';
|