2013-12-18 00:23:23 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$table = new PhabricatorRepositoryPushLog();
|
|
|
|
$conn_w = $table->establishConnection('w');
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Assigning PHIDs to push logs...')."\n";
|
2013-12-18 00:23:23 +01:00
|
|
|
|
|
|
|
$logs = new LiskMigrationIterator($table);
|
|
|
|
foreach ($logs as $log) {
|
|
|
|
$id = $log->getID();
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Updating %s...', $id)."\n";
|
2013-12-18 00:23:23 +01:00
|
|
|
queryfx(
|
|
|
|
$conn_w,
|
|
|
|
'UPDATE %T SET phid = %s WHERE id = %d',
|
|
|
|
$table->getTableName(),
|
|
|
|
$log->generatePHID(),
|
|
|
|
$id);
|
|
|
|
}
|
|
|
|
|
2015-05-22 09:27:56 +02:00
|
|
|
echo pht('Done.')."\n";
|