mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 00:02:41 +01:00
18 lines
347 B
PHP
18 lines
347 B
PHP
|
<?php
|
||
|
|
||
|
$table = new PhabricatorUserPreferences();
|
||
|
$conn_w = $table->establishConnection('w');
|
||
|
|
||
|
foreach (new LiskMigrationIterator($table) as $row) {
|
||
|
if ($row->getPHID() !== '') {
|
||
|
continue;
|
||
|
}
|
||
|
|
||
|
queryfx(
|
||
|
$conn_w,
|
||
|
'UPDATE %T SET phid = %s WHERE id = %d',
|
||
|
$table->getTableName(),
|
||
|
$table->generatePHID(),
|
||
|
$row->getID());
|
||
|
}
|