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