Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96285832
20140731.cancdn.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Dec 24, 13:30
Size
463 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 13:30 (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
23151074
Attached To
rPH Phabricator
20140731.cancdn.php
View Options
<?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
);
}
}
Event Timeline
Log In to Comment