Remove orphaned calendar data from deleted subscriptions
Closes #16833. Ref #13511 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
148c6e6f28
commit
456fb7e294
|
@ -55,6 +55,11 @@ class RemoveOrphanEventsAndContacts implements IRepairStep {
|
||||||
$orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendars', 'calendarid');
|
$orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendars', 'calendarid');
|
||||||
$output->info(sprintf('%d changes without a calendar have been cleaned up', $orphanItems));
|
$output->info(sprintf('%d changes without a calendar have been cleaned up', $orphanItems));
|
||||||
|
|
||||||
|
$orphanItems = $this->removeOrphanChildren('calendarobjects', 'calendarsubscriptions', 'calendarid');
|
||||||
|
$output->info(sprintf('%d cached events without a calendar subscription have been cleaned up', $orphanItems));
|
||||||
|
$orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendarsubscriptions', 'calendarid');
|
||||||
|
$output->info(sprintf('%d changes without a calendar subscription have been cleaned up', $orphanItems));
|
||||||
|
|
||||||
$orphanItems = $this->removeOrphanChildren('cards', 'addressbooks', 'addressbookid');
|
$orphanItems = $this->removeOrphanChildren('cards', 'addressbooks', 'addressbookid');
|
||||||
$output->info(sprintf('%d contacts without an addressbook have been cleaned up', $orphanItems));
|
$output->info(sprintf('%d contacts without an addressbook have been cleaned up', $orphanItems));
|
||||||
$orphanItems = $this->removeOrphanChildren('cards_properties', 'cards', 'cardid');
|
$orphanItems = $this->removeOrphanChildren('cards_properties', 'cards', 'cardid');
|
||||||
|
|
Loading…
Reference in New Issue