@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
at recaptime-dev/main 21 lines 477 B view raw
1<?php 2 3echo pht('Adding %s to events.', 'mailkeys')."\n"; 4 5$table = new PhabricatorCalendarEvent(); 6$conn_w = $table->establishConnection('w'); 7$iterator = new LiskMigrationIterator($table); 8foreach ($iterator as $event) { 9 $id = $event->getID(); 10 11 echo pht('Populating event %d...', $id)."\n"; 12 13 queryfx( 14 $conn_w, 15 'UPDATE %T SET mailKey = %s WHERE id = %d', 16 $table->getTableName(), 17 Filesystem::readRandomCharacters(20), 18 $id); 19} 20 21echo pht('Done.')."\n";