Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91392006
20130711.pholioimageobsolete.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
Sun, Nov 10, 16:12
Size
449 B
Mime Type
text/x-php
Expires
Tue, Nov 12, 16:12 (2 d)
Engine
blob
Format
Raw Data
Handle
22256373
Attached To
rPH Phabricator
20130711.pholioimageobsolete.php
View Options
<?php
echo
pht
(
'Giving Pholio images PHIDs'
);
$table
=
new
PholioImage
();
$table
->
openTransaction
();
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$image
)
{
if
(
$image
->
getPHID
())
{
continue
;
}
echo
'.'
;
queryfx
(
$image
->
establishConnection
(
'w'
),
'UPDATE %T SET phid = %s WHERE id = %d'
,
$image
->
getTableName
(),
$image
->
generatePHID
(),
$image
->
getID
());
}
$table
->
saveTransaction
();
echo
"
\n
"
.
pht
(
'Done.'
).
"
\n
"
;
Event Timeline
Log In to Comment