Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F105894932
20180120.auth.04.vcsphid.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, Mar 20, 15:31
Size
572 B
Mime Type
text/x-php
Expires
Sat, Mar 22, 15:31 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25067691
Attached To
rPH Phabricator
20180120.auth.04.vcsphid.php
View Options
<?php
// Populate VCS passwords (which we copied from the old "VCS Password" 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