mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01:00
51fead17cf
Summary: Ref T8726. No surprises. Test Plan: Created rules using both action variants, applied upgrade, saw rules still work correctly. {F658842} Reviewers: btrahan Reviewed By: btrahan Subscribers: joshuaspence, epriestley Maniphest Tasks: T8726 Differential Revision: https://secure.phabricator.com/D13701
13 lines
401 B
SQL
13 lines
401 B
SQL
UPDATE {$NAMESPACE}_herald.herald_actionrecord a
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON a.ruleID = r.id
|
|
SET a.action = 'email.other'
|
|
WHERE r.ruleType != 'personal'
|
|
AND a.action = 'email';
|
|
|
|
UPDATE {$NAMESPACE}_herald.herald_actionrecord a
|
|
JOIN {$NAMESPACE}_herald.herald_rule r
|
|
ON a.ruleID = r.id
|
|
SET a.action = 'email.self'
|
|
WHERE r.ruleType = 'personal'
|
|
AND a.action = 'email';
|