Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / resources / sql / autopatches / 20151210.land.2.refphid.php
blob4d8a95a79b5241643febaf74231144e8ac4e0b47
1 <?php
3 $table = new PhabricatorRepositoryRefCursor();
4 $conn_w = $table->establishConnection('w');
6 foreach (new LiskMigrationIterator($table) as $cursor) {
7 if (strlen($cursor->getPHID())) {
8 continue;
11 queryfx(
12 $conn_w,
13 'UPDATE %T SET phid = %s WHERE id = %d',
14 $table->getTableName(),
15 $table->generatePHID(),
16 $cursor->getID());