Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93879376
20130502.countdownrevamp2.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, Dec 2, 05:32
Size
479 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 05:32 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22671895
Attached To
rPH Phabricator
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
"
;
Event Timeline
Log In to Comment