Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97994728
20150526.owners.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
Wed, Jan 8, 09:54
Size
423 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 09:54 (2 d)
Engine
blob
Format
Raw Data
Handle
23475187
Attached To
rPH Phabricator
20150526.owners.mailkey.2.php
View Options
<?php
$table
=
new
PhabricatorOwnersPackage
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$package
)
{
$id
=
$package
->
getID
();
echo
pht
(
'Adding mail key for package %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