@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3$table = new PhabricatorRepositoryPushLog();
4$conn_w = $table->establishConnection('w');
5
6echo pht('Assigning PHIDs to push logs...')."\n";
7
8$logs = new LiskMigrationIterator($table);
9foreach ($logs as $log) {
10 $id = $log->getID();
11 echo pht('Updating %s...', $id)."\n";
12 queryfx(
13 $conn_w,
14 'UPDATE %T SET phid = %s WHERE id = %d',
15 $table->getTableName(),
16 $log->generatePHID(),
17 $id);
18}
19
20echo pht('Done.')."\n";