Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F985678
20210316.almanac.11.network-mailkey.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
688 B
Referenced Files
None
Subscribers
None
20210316.almanac.11.network-mailkey.php
View Options
<?php
$network_table
=
new
AlmanacNetwork
();
$network_conn
=
$network_table
->
establishConnection
(
'w'
);
$properties_table
=
new
PhabricatorMetaMTAMailProperties
();
$conn
=
$properties_table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskRawMigrationIterator
(
$network_conn
,
$network_table
->
getTableName
());
foreach
(
$iterator
as
$row
)
{
queryfx
(
$conn
,
'INSERT IGNORE INTO %R
(objectPHID, mailProperties, dateCreated, dateModified)
VALUES
(%s, %s, %d, %d)'
,
$properties_table
,
$row
[
'phid'
],
phutil_json_encode
(
array
(
'mailKey'
=>
$row
[
'mailKey'
],
)),
PhabricatorTime
::
getNow
(),
PhabricatorTime
::
getNow
());
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 4:17 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
233112
Default Alt Text
20210316.almanac.11.network-mailkey.php (688 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment