Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893658
20130502.countdownrevamp2.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
479 B
Referenced Files
None
Subscribers
None
20130502.countdownrevamp2.php
View Options
<?php
echo
pht
(
'Giving countdowns PHIDs'
)
;
$table
=
new
PhabricatorCountdown
(
)
;
$table
->
openTransaction
(
)
;
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$countdown
)
{
if
(
$countdown
->
getPHID
(
)
)
{
continue
;
}
echo
'.'
;
queryfx
(
$countdown
->
establishConnection
(
'w'
)
,
'UPDATE %T SET phid = %s WHERE id = %d'
,
$countdown
->
getTableName
(
)
,
$countdown
->
generatePHID
(
)
,
$countdown
->
getID
(
)
)
;
}
$table
->
saveTransaction
(
)
;
echo
"\n"
.
pht
(
'Done.'
)
.
"\n"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:50 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127571
Default Alt Text
20130502.countdownrevamp2.php (479 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment