Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1092234
20150501.calendar.2.reply.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
445 B
Referenced Files
None
Subscribers
None
20150501.calendar.2.reply.php
View Options
<?php
echo
"Adding mailkeys to events.
\n
"
;
$table
=
new
PhabricatorCalendarEvent
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$event
)
{
$id
=
$event
->
getID
();
echo
"Populating event {$id}...
\n
"
;
queryfx
(
$conn_w
,
'UPDATE %T SET mailKey = %s WHERE id = %d'
,
$table
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
20
),
$id
);
}
echo
"Done.
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 30, 6:33 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
271097
Default Alt Text
20150501.calendar.2.reply.php (445 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment