Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78399537
20151106.phame.post.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, Aug 20, 15:09
Size
399 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 15:09 (2 d)
Engine
blob
Format
Raw Data
Handle
20037895
Attached To
rPH Phabricator
20151106.phame.post.mailkey.2.php
View Options
<?php
$table
=
new
PhamePost
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$post
)
{
$id
=
$post
->
getID
();
echo
pht
(
'Adding mail key for Post %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