Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108009505
20180121.auth.04.accountphid.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
Sun, Apr 13, 03:12
Size
562 B
Mime Type
text/x-php
Expires
Tue, Apr 15, 03:12 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25512451
Attached To
rPH Phabricator
20180121.auth.04.accountphid.php
View Options
<?php
// Populate account passwords (which we copied from the user table in the last
// migration) with new PHIDs.
$table
=
new
PhabricatorAuthPassword
();
$conn
=
$table
->
establishConnection
(
'w'
);
$password_type
=
PhabricatorAuthPasswordPHIDType
::
TYPECONST
;
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$row
)
{
if
(
phid_get_type
(
$row
->
getPHID
())
==
$password_type
)
{
continue
;
}
$new_phid
=
$row
->
generatePHID
();
queryfx
(
$conn
,
'UPDATE %T SET phid = %s WHERE id = %d'
,
$table
->
getTableName
(),
$new_phid
,
$row
->
getID
());
}
Event Timeline
Log In to Comment