@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 25 lines 606 B view raw
1<?php 2 3echo pht('Populating Legalpad Documents with mail keys...')."\n"; 4$table = new LegalpadDocument(); 5$table->openTransaction(); 6 7foreach (new LiskMigrationIterator($table) as $document) { 8 $id = $document->getID(); 9 10 echo pht('Document %s: ', $id); 11 if (!$document->getMailKey()) { 12 queryfx( 13 $document->establishConnection('w'), 14 'UPDATE %T SET mailKey = %s WHERE id = %d', 15 $document->getTableName(), 16 Filesystem::readRandomCharacters(20), 17 $id); 18 echo pht('Generated Key')."\n"; 19 } else { 20 echo "-\n"; 21 } 22} 23 24$table->saveTransaction(); 25echo pht('Done.')."\n";