Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F116138091
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
Thu, Jun 5, 03:24
Size
463 B
Mime Type
text/x-php
Expires
Sat, Jun 7, 03:24 (2 d)
Engine
blob
Format
Raw Data
Handle
26564705
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