Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90329704
20150804.ponder.answer.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
Thu, Oct 31, 14:17
Size
408 B
Mime Type
text/x-php
Expires
Sat, Nov 2, 14:17 (2 d)
Engine
blob
Format
Raw Data
Handle
22053964
Attached To
rPH Phabricator
20150804.ponder.answer.mailkey.2.php
View Options
<?php
$table
=
new
PonderAnswer
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$answer
)
{
$id
=
$answer
->
getID
();
echo
pht
(
'Adding mail key for Answer %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