Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99044006
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
Sat, Jan 18, 16:39
Size
463 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 16:39 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23696563
Attached To
rPH Phabricator
20130502.countdownrevamp2.php
View Options
<?php
echo
"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
Done.
\n
"
;
Event Timeline
Log In to Comment