Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93078890
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
Tue, Nov 26, 01:26
Size
440 B
Mime Type
text/x-php
Expires
Thu, Nov 28, 01:26 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22568894
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