Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2350172
20121209.xmacromigrate.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
446 B
Referenced Files
None
Subscribers
None
20121209.xmacromigrate.php
View Options
<?php
echo
'Giving image macros PHIDs'
;
$table
=
new
PhabricatorFileImageMacro
();
$table
->
openTransaction
();
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$macro
)
{
if
(
$macro
->
getPHID
())
{
continue
;
}
echo
'.'
;
queryfx
(
$macro
->
establishConnection
(
'w'
),
'UPDATE %T SET phid = %s WHERE id = %d'
,
$macro
->
getTableName
(),
$macro
->
generatePHID
(),
$macro
->
getID
());
}
$table
->
saveTransaction
();
echo
"
\n
Done.
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 11:45 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
447882
Default Alt Text
20121209.xmacromigrate.php (446 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment