Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F953078
20150622.metamta.2.phid-mig.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
468 B
Referenced Files
None
Subscribers
None
20150622.metamta.2.phid-mig.php
View Options
<?php
$table
=
new
PhabricatorMetaMTAMail
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
echo
pht
(
'Assigning PHIDs to mails...'
).
"
\n
"
;
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$mail
)
{
$id
=
$mail
->
getID
();
echo
pht
(
'Updating mail %d...'
,
$id
).
"
\n
"
;
if
(
$mail
->
getPHID
())
{
continue
;
}
queryfx
(
$conn_w
,
'UPDATE %T SET phid = %s WHERE id = %d'
,
$table
->
getTableName
(),
$table
->
generatePHID
(),
$id
);
}
echo
pht
(
'Done.'
).
"
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 3:52 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
226799
Default Alt Text
20150622.metamta.2.phid-mig.php (468 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment