Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117327656
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
Fri, Jun 13, 00:39
Size
477 B
Mime Type
text/x-php
Expires
Sun, Jun 15, 00:39 (2 d)
Engine
blob
Format
Raw Data
Handle
26749958
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