Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F950756
20140815.cancdncase.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
20140815.cancdncase.php
View Options
<?php
// This corrects files which incorrectly had a 'cancdn' property written;
// the property should be 'canCDN'.
$table
=
new
PhabricatorFile
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$file
)
{
$id
=
$file
->
getID
();
echo
pht
(
"Updating capitalization of %s property for file %d...
\n
"
,
'canCDN'
,
$id
);
$meta
=
$file
->
getMetadata
();
if
(
isset
(
$meta
[
'cancdn'
]))
{
$meta
[
'canCDN'
]
=
$meta
[
'cancdn'
];
unset
(
$meta
[
'cancdn'
]);
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
Tue, Jun 17, 2:18 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224391
Default Alt Text
20140815.cancdncase.php (658 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment