Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117972024
20181213.auth.02.populatephid.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
Mon, Jun 16, 20:48
Size
361 B
Mime Type
text/x-php
Expires
Wed, Jun 18, 20:48 (2 d)
Engine
blob
Format
Raw Data
Handle
26818003
Attached To
rPH Phabricator
20181213.auth.02.populatephid.php
View Options
<?php
$table
=
new
PhabricatorAuthSession
();
$iterator
=
new
LiskMigrationIterator
(
$table
);
$conn
=
$table
->
establishConnection
(
'w'
);
foreach
(
$iterator
as
$session
)
{
if
(
strlen
(
$session
->
getPHID
()))
{
continue
;
}
queryfx
(
$conn
,
'UPDATE %R SET phid = %s WHERE id = %d'
,
$table
,
$session
->
generatePHID
(),
$session
->
getID
());
}
Event Timeline
Log In to Comment