mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
19 lines
381 B
PHP
19 lines
381 B
PHP
|
<?php
|
||
|
|
||
|
$table = new PhabricatorUserEmail();
|
||
|
$conn = $table->establishConnection('w');
|
||
|
|
||
|
$iterator = new LiskRawMigrationIterator($conn, $table->getTableName());
|
||
|
foreach ($iterator as $row) {
|
||
|
$phid = $row['phid'];
|
||
|
|
||
|
if (!strlen($phid)) {
|
||
|
queryfx(
|
||
|
$conn,
|
||
|
'UPDATE %R SET phid = %s WHERE id = %d',
|
||
|
$table,
|
||
|
$table->generatePHID(),
|
||
|
$row['id']);
|
||
|
}
|
||
|
}
|