Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F983340
20210316.almanac.15.intiative-mailkey.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
20210316.almanac.15.intiative-mailkey.php
View Options
<?php
$initiative_table
=
new
FundInitiative
();
$initiative_conn
=
$initiative_table
->
establishConnection
(
'w'
);
$properties_table
=
new
PhabricatorMetaMTAMailProperties
();
$conn
=
$properties_table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskRawMigrationIterator
(
$initiative_conn
,
$initiative_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, 2:14 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
236924
Default Alt Text
20210316.almanac.15.intiative-mailkey.php (703 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment