Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / resources / sql / autopatches / 20191114.email.02.populate.php
blob96ef13ea58535429af580a3df833bd8107de9c5f
1 <?php
3 $table = new PhabricatorUserEmail();
4 $conn = $table->establishConnection('w');
6 $iterator = new LiskRawMigrationIterator($conn, $table->getTableName());
7 foreach ($iterator as $row) {
8 $phid = $row['phid'];
10 if (!strlen($phid)) {
11 queryfx(
12 $conn,
13 'UPDATE %R SET phid = %s WHERE id = %d',
14 $table,
15 $table->generatePHID(),
16 $row['id']);