Skip to content

Commit 456fb7e

Browse files
committed
Remove orphaned calendar data from deleted subscriptions
Closes #16833. Ref #13511 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
1 parent 148c6e6 commit 456fb7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ public function run(IOutput $output) {
5555
$orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendars', 'calendarid');
5656
$output->info(sprintf('%d changes without a calendar have been cleaned up', $orphanItems));
5757

58+
$orphanItems = $this->removeOrphanChildren('calendarobjects', 'calendarsubscriptions', 'calendarid');
59+
$output->info(sprintf('%d cached events without a calendar subscription have been cleaned up', $orphanItems));
60+
$orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendarsubscriptions', 'calendarid');
61+
$output->info(sprintf('%d changes without a calendar subscription have been cleaned up', $orphanItems));
62+
5863
$orphanItems = $this->removeOrphanChildren('cards', 'addressbooks', 'addressbookid');
5964
$output->info(sprintf('%d contacts without an addressbook have been cleaned up', $orphanItems));
6065
$orphanItems = $this->removeOrphanChildren('cards_properties', 'cards', 'cardid');

0 commit comments

Comments
 (0)