mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 09:20:58 +01:00
aa68cc8830
Summary: Ref T7957, Calendar event transaction emails without reply handling. Test Plan: Create event, invitees should get email. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7957 Differential Revision: https://secure.phabricator.com/D12645
21 lines
445 B
PHP
21 lines
445 B
PHP
<?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";
|