mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
36e2d02d6e
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
20 lines
463 B
PHP
20 lines
463 B
PHP
<?php
|
|
|
|
$table = new PhabricatorFile();
|
|
$conn_w = $table->establishConnection('w');
|
|
foreach (new LiskMigrationIterator($table) as $file) {
|
|
$id = $file->getID();
|
|
echo pht('Updating flags for file %d...', $id)."\n";
|
|
$meta = $file->getMetadata();
|
|
if (!idx($meta, 'canCDN')) {
|
|
|
|
$meta['canCDN'] = true;
|
|
|
|
queryfx(
|
|
$conn_w,
|
|
'UPDATE %T SET metadata = %s WHERE id = %d',
|
|
$table->getTableName(),
|
|
json_encode($meta),
|
|
$id);
|
|
}
|
|
}
|