Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73674509
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, Jul 23, 14:43
Size
463 B
Mime Type
text/x-php
Expires
Thu, Jul 25, 14:43 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19216102
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