Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F111311391
20131217.pushlogphid.2.mig.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
Wed, Apr 30, 17:24
Size
440 B
Mime Type
text/x-php
Expires
Fri, May 2, 17:24 (2 d)
Engine
blob
Format
Raw Data
Handle
25895602
Attached To
rPH Phabricator
20131217.pushlogphid.2.mig.php
View Options
<?php
$table
=
new
PhabricatorRepositoryPushLog
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
echo
pht
(
'Assigning PHIDs to push logs...'
).
"
\n
"
;
$logs
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$logs
as
$log
)
{
$id
=
$log
->
getID
();
echo
pht
(
'Updating %s...'
,
$id
).
"
\n
"
;
queryfx
(
$conn_w
,
'UPDATE %T SET phid = %s WHERE id = %d'
,
$table
->
getTableName
(),
$log
->
generatePHID
(),
$id
);
}
echo
pht
(
'Done.'
).
"
\n
"
;
Event Timeline
Log In to Comment