Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F124086653
20140410.accountsecret.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, Jul 31, 09:00
Size
425 B
Mime Type
text/x-php
Expires
Sat, Aug 2, 09:00 (2 d)
Engine
blob
Format
Raw Data
Handle
27802366
Attached To
rPH Phabricator
20140410.accountsecret.2.php
View Options
<?php
echo
"Updating users...
\n
"
;
foreach
(
new
LiskMigrationIterator
(
new
PhabricatorUser
())
as
$user
)
{
$id
=
$user
->
getID
();
echo
"Updating {$id}...
\n
"
;
if
(
strlen
(
$user
->
getAccountSecret
()))
{
continue
;
}
queryfx
(
$user
->
establishConnection
(
'w'
),
'UPDATE %T SET accountSecret = %s WHERE id = %d'
,
$user
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
64
),
$id
);
}
echo
"Done.
\n
"
;
Event Timeline
Log In to Comment