Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F94968727
20150501.calendar.2.reply.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
Wed, Dec 11, 19:32
Size
477 B
Mime Type
text/x-php
Expires
Fri, Dec 13, 19:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22905768
Attached To
rPH Phabricator
20150501.calendar.2.reply.php
View Options
<?php
echo
pht
(
'Adding %s to events.'
,
'mailkeys'
).
"
\n
"
;
$table
=
new
PhabricatorCalendarEvent
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$event
)
{
$id
=
$event
->
getID
();
echo
pht
(
'Populating event %d...'
,
$id
).
"
\n
"
;
queryfx
(
$conn_w
,
'UPDATE %T SET mailKey = %s WHERE id = %d'
,
$table
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
20
),
$id
);
}
echo
pht
(
'Done.'
).
"
\n
"
;
Event Timeline
Log In to Comment