Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F118013388
20150725.slowvote.mailkey.2.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
Tue, Jun 17, 04:02
Size
425 B
Mime Type
text/x-php
Expires
Thu, Jun 19, 04:02 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26769698
Attached To
rPH Phabricator
20150725.slowvote.mailkey.2.php
View Options
<?php
$table
=
new
PhabricatorSlowvotePoll
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$slowvote
)
{
$id
=
$slowvote
->
getID
();
echo
pht
(
'Adding mail key for Slowvote %d...'
,
$id
);
echo
"
\n
"
;
queryfx
(
$conn_w
,
'UPDATE %T SET mailKey = %s WHERE id = %d'
,
$table
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
20
),
$id
);
}
Event Timeline
Log In to Comment