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