diff options
author | Thomas Citharel <tcit@tcit.fr> | 2019-08-22 11:58:48 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2019-08-22 12:06:49 +0200 |
commit | 456fb7e2940f3c49de3fad0c26230452d2196f49 (patch) | |
tree | 7011642456f63a7768e396bda3320a7e36572fff /apps/dav | |
parent | 148c6e6f28bd94e07c935e0e65031349b4d5dcee (diff) | |
download | nextcloud-server-456fb7e2940f3c49de3fad0c26230452d2196f49.tar.gz nextcloud-server-456fb7e2940f3c49de3fad0c26230452d2196f49.zip |
Remove orphaned calendar data from deleted subscriptions
Closes #16833. Ref #13511
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php index 17643587904..7d995ff35cd 100644 --- a/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php +++ b/apps/dav/lib/Migration/RemoveOrphanEventsAndContacts.php @@ -55,6 +55,11 @@ class RemoveOrphanEventsAndContacts implements IRepairStep { $orphanItems = $this->removeOrphanChildren('calendarchanges', 'calendars', 'calendarid'); $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'); $output->info(sprintf('%d contacts without an addressbook have been cleaned up', $orphanItems)); $orphanItems = $this->removeOrphanChildren('cards_properties', 'cards', 'cardid'); |