Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1517371
20180120.auth.04.vcsphid.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
477 B
Referenced Files
None
Subscribers
None
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'
);
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$row
)
{
if
(
$row
->
getPHID
())
{
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
Mon, Jul 14, 12:57 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
352258
Default Alt Text
20180120.auth.04.vcsphid.php (477 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment