Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1669586
20140731.cancdn.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
463 B
Referenced Files
None
Subscribers
None
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 17, 6:16 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
367067
Default Alt Text
20140731.cancdn.php (463 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment