mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
a335004a91
Ref T8726. Modularizes the "Add Reviewers" and "Add Blocking Reviewers" Herald actions.
27 lines
813 B
SQL
27 lines
813 B
SQL
UPDATE {$NAMESPACE}_herald.herald_action 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_action 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_action 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_action 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';
|