Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F87800002
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
Tue, Oct 15, 01:10
Size
477 B
Mime Type
text/x-php
Expires
Thu, Oct 17, 01:10 (2 d)
Engine
blob
Format
Raw Data
Handle
21659167
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