Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F961857
20180121.auth.04.accountphid.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
562 B
Referenced Files
None
Subscribers
None
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
());
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 11:48 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
230272
Default Alt Text
20180121.auth.04.accountphid.php (562 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment