@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at upstream/main 20 lines 570 B view raw
1<?php 2 3$key = 'metamta.maniphest.public-create-email'; 4echo pht("Migrating `%s` to new application email infrastructure...\n", $key); 5$value = PhabricatorEnv::getEnvConfigIfExists($key); 6$maniphest = new PhabricatorManiphestApplication(); 7 8if ($value) { 9 try { 10 PhabricatorMetaMTAApplicationEmail::initializeNewAppEmail( 11 PhabricatorUser::getOmnipotentUser()) 12 ->setAddress($value) 13 ->setApplicationPHID($maniphest->getPHID()) 14 ->save(); 15 } catch (AphrontDuplicateKeyQueryException $ex) { 16 // Already migrated? 17 } 18} 19 20echo pht('Done.')."\n";