Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117036075
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, Jun 11, 00:14
Size
440 B
Mime Type
text/x-php
Expires
Fri, Jun 13, 00:14 (2 d)
Engine
blob
Format
Raw Data
Handle
26654077
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