3 $table = new PhabricatorRepositoryIdentity();
4 $conn = $table->establishConnection('w');
6 $iterator = new LiskRawMigrationIterator($conn, $table->getTableName());
7 foreach ($iterator as $row) {
8 $name = $row['identityNameRaw'];
9 $name = phutil_utf8ize($name);
11 $email = new PhutilEmailAddress($name);
12 $address = $email->getAddress();
17 'UPDATE %R SET emailAddress = %ns WHERE id = %d',
21 } catch (Exception
$ex) {
22 // We may occasionally run into issues with binary or very long addresses.
23 // Just skip over them.