1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 11:30:55 +01:00

Truncate very old, overlong Maniphest mail keys

Summary:
Ref T1191. Long ago, Maniphest generated with 40-character mail keys. These prevent the migration to `bytes20`. We had about 300 of these on secure.phabricator.com from several years ago.

Just truncate them. This adjusts reply-to addresses, but it's very likely that none are relevant anymore.

Test Plan: Ran migration on `secure.phabricator.com` to truncate keys.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

Differential Revision: https://secure.phabricator.com/D10615
This commit is contained in:
epriestley 2014-10-01 12:43:58 -07:00
parent 3629ebebe9
commit 3a644cf6cc

View file

@ -0,0 +1,2 @@
UPDATE {$NAMESPACE}_maniphest.maniphest_task
SET mailKey = SUBSTRING(mailKey, 1, 20) WHERE LENGTH(mailKey) > 20;