Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / resources / sql / autopatches / 20150725.slowvote.mailkey.2.php
blobfa6b2035df9d49266b8228902b5d9b76426a4527
1 <?php
3 $table = new PhabricatorSlowvotePoll();
4 $conn_w = $table->establishConnection('w');
5 $iterator = new LiskMigrationIterator($table);
6 foreach ($iterator as $slowvote) {
7 $id = $slowvote->getID();
9 echo pht('Adding mail key for Slowvote %d...', $id);
10 echo "\n";
12 queryfx(
13 $conn_w,
14 'UPDATE %T SET mailKey = %s WHERE id = %d',
15 $table->getTableName(),
16 Filesystem::readRandomCharacters(20),
17 $id);