From 3a644cf6cc22110e8a88ce2840a0cd99a47c5f18 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 1 Oct 2014 12:43:58 -0700 Subject: [PATCH] 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 --- resources/sql/autopatches/20141001.schema.02.taskmail.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 resources/sql/autopatches/20141001.schema.02.taskmail.sql diff --git a/resources/sql/autopatches/20141001.schema.02.taskmail.sql b/resources/sql/autopatches/20141001.schema.02.taskmail.sql new file mode 100644 index 0000000000..84c970ac1c --- /dev/null +++ b/resources/sql/autopatches/20141001.schema.02.taskmail.sql @@ -0,0 +1,2 @@ +UPDATE {$NAMESPACE}_maniphest.maniphest_task + SET mailKey = SUBSTRING(mailKey, 1, 20) WHERE LENGTH(mailKey) > 20;