[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 $table = new PhabricatorFile(); 4 $conn_w = $table->establishConnection('w'); 5 foreach (new LiskMigrationIterator($table) as $file) { 6 $id = $file->getID(); 7 echo "Updating flags for file {$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 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |