Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93036892
20150515.project.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
Mon, Nov 25, 17:46
Size
417 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 17:46 (2 d)
Engine
blob
Format
Raw Data
Handle
22560537
Attached To
rPH Phabricator
20150515.project.mailkey.2.php
View Options
<?php
$table
=
new
PhabricatorProject
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$project
)
{
$id
=
$project
->
getID
();
echo
pht
(
'Adding mail key for project %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