@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 20 lines 463 B view raw
1<?php 2 3$table = new PhabricatorFile(); 4$conn_w = $table->establishConnection('w'); 5foreach (new LiskMigrationIterator($table) as $file) { 6 $id = $file->getID(); 7 echo pht('Updating flags for file %d...', $id)."\n"; 8 $meta = $file->getMetadata(); 9 if (!idx($meta, 'canCDN')) { 10 11 $meta['canCDN'] = true; 12 13 queryfx( 14 $conn_w, 15 'UPDATE %T SET metadata = %s WHERE id = %d', 16 $table->getTableName(), 17 json_encode($meta), 18 $id); 19 } 20}