mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
8ae08a3de7
Summary: Ref T8726. Converts these actions to be modular. No real surprises in this change. Test Plan: {F658709} - Wrote some rules. - Migrated them forward. - Used a bunch of these rules. Reviewers: btrahan Reviewed By: btrahan Subscribers: joshuaspence, epriestley Maniphest Tasks: T8726 Differential Revision: https://secure.phabricator.com/D13699
27 lines
837 B
SQL
27 lines
837 B
SQL
UPDATE {$NAMESPACE}_herald.herald_actionrecord a
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON a.ruleID = r.id
|
|
SET a.action = 'subscribers.add'
|
|
WHERE r.ruleType != 'personal'
|
|
AND a.action = 'addcc';
|
|
|
|
UPDATE {$NAMESPACE}_herald.herald_actionrecord a
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON a.ruleID = r.id
|
|
SET a.action = 'subscribers.self.add'
|
|
WHERE r.ruleType = 'personal'
|
|
AND a.action = 'addcc';
|
|
|
|
UPDATE {$NAMESPACE}_herald.herald_actionrecord a
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON a.ruleID = r.id
|
|
SET a.action = 'subscribers.remove'
|
|
WHERE r.ruleType != 'personal'
|
|
AND a.action = 'remcc';
|
|
|
|
UPDATE {$NAMESPACE}_herald.herald_actionrecord a
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON a.ruleID = r.id
|
|
SET a.action = 'subscribers.self.remove'
|
|
WHERE r.ruleType = 'personal'
|
|
AND a.action = 'remcc';
|