Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F951299
20220525.slowvote.01.mailkey.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
682 B
Referenced Files
None
Subscribers
None
20220525.slowvote.01.mailkey.php
View Options
<?php
$poll_table
=
new
PhabricatorSlowvotePoll
();
$poll_conn
=
$poll_table
->
establishConnection
(
'w'
);
$properties_table
=
new
PhabricatorMetaMTAMailProperties
();
$conn
=
$properties_table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskRawMigrationIterator
(
$poll_conn
,
$poll_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
Tue, Jun 17, 2:46 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224042
Default Alt Text
20220525.slowvote.01.mailkey.php (682 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment