Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102760754
20180829.phriction.01.mailkey.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, Feb 23, 22:23
Size
739 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 22:23 (2 d)
Engine
blob
Format
Raw Data
Handle
24392785
Attached To
rPH Phabricator
20180829.phriction.01.mailkey.php
View Options
<?php
$document_table
=
new
PhrictionDocument
();
$document_conn
=
$document_table
->
establishConnection
(
'w'
);
$document_name
=
$document_table
->
getTableName
();
$properties_table
=
new
PhabricatorMetaMTAMailProperties
();
$conn
=
$properties_table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskRawMigrationIterator
(
$document_conn
,
$document_name
);
foreach
(
$iterator
as
$row
)
{
queryfx
(
$conn
,
'INSERT IGNORE INTO %T
(objectPHID, mailProperties, dateCreated, dateModified)
VALUES
(%s, %s, %d, %d)'
,
$properties_table
->
getTableName
(),
$row
[
'phid'
],
phutil_json_encode
(
array
(
'mailKey'
=>
$row
[
'mailKey'
],
)),
PhabricatorTime
::
getNow
(),
PhabricatorTime
::
getNow
());
}
Event Timeline
Log In to Comment