mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
28 lines
837 B
MySQL
28 lines
837 B
MySQL
|
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';
|