mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 08:20:57 +01:00
415e4d4cc1
Summary: Ref T8726. Use modular fields for the Pholio adapter. Test Plan: - Created rule using all the old fields. - Migrated, saw upgrade apply correctly. - Created mock, reviewed transcript. Reviewers: btrahan Reviewed By: btrahan Subscribers: eadler, epriestley Maniphest Tasks: T8726 Differential Revision: https://secure.phabricator.com/D13513
20 lines
689 B
SQL
20 lines
689 B
SQL
UPDATE {$NAMESPACE}_herald.herald_condition c
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON c.ruleID = r.id
|
|
SET c.fieldName = 'pholio.mock.name'
|
|
WHERE r.contentType = 'HeraldPholioMockAdapter'
|
|
AND c.fieldName = 'title';
|
|
|
|
UPDATE {$NAMESPACE}_herald.herald_condition c
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON c.ruleID = r.id
|
|
SET c.fieldName = 'pholio.mock.description'
|
|
WHERE r.contentType = 'HeraldPholioMockAdapter'
|
|
AND c.fieldName = 'body';
|
|
|
|
UPDATE {$NAMESPACE}_herald.herald_condition c
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON c.ruleID = r.id
|
|
SET c.fieldName = 'pholio.mock.author'
|
|
WHERE r.contentType = 'HeraldPholioMockAdapter'
|
|
AND c.fieldName = 'author';
|