@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 27 lines 658 B view raw
1<?php 2 3// This corrects files which incorrectly had a 'cancdn' property written; 4// the property should be 'canCDN'. 5 6$table = new PhabricatorFile(); 7$conn_w = $table->establishConnection('w'); 8foreach (new LiskMigrationIterator($table) as $file) { 9 $id = $file->getID(); 10 echo pht( 11 "Updating capitalization of %s property for file %d...\n", 12 'canCDN', 13 $id); 14 $meta = $file->getMetadata(); 15 16 if (isset($meta['cancdn'])) { 17 $meta['canCDN'] = $meta['cancdn']; 18 unset($meta['cancdn']); 19 20 queryfx( 21 $conn_w, 22 'UPDATE %T SET metadata = %s WHERE id = %d', 23 $table->getTableName(), 24 json_encode($meta), 25 $id); 26 } 27}