Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96152533
20121209.xmacromigrate.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
Mon, Dec 23, 05:15
Size
373 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 05:15 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23134762
Attached To
rPH Phabricator
20121209.xmacromigrate.php
View Options
<?php
echo
"Giving image macros PHIDs"
;
foreach
(
new
LiskMigrationIterator
(
new
PhabricatorFileImageMacro
())
as
$macro
)
{
if
(
$macro
->
getPHID
())
{
continue
;
}
echo
"."
;
queryfx
(
$macro
->
establishConnection
(
'r'
),
'UPDATE %T SET phid = %s WHERE id = %d'
,
$macro
->
getTableName
(),
$macro
->
generatePHID
(),
$macro
->
getID
());
}
echo
"
\n
Done.
\n
"
;
Event Timeline
Log In to Comment