Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F971448
20131217.pushlogphid.2.mig.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
440 B
Referenced Files
None
Subscribers
None
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
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 5:47 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224019
Default Alt Text
20131217.pushlogphid.2.mig.php (440 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment