]> source.dussan.org Git - nextcloud-server.git/commitdiff
Move new IMigrator method to a specific interface ISizeEstimationMigrator
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 24 May 2022 08:01:14 +0000 (10:01 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 31 May 2022 00:19:13 +0000 (00:19 +0000)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
apps/dav/lib/UserMigration/CalendarMigrator.php
apps/dav/lib/UserMigration/ContactsMigrator.php
apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
apps/settings/lib/UserMigration/AccountMigrator.php

index e6383bcc1ddcd90485152100edd22cf015df6ca5..2345acd43fd4b3921ba66565c91f6c846e1ed10b 100644 (file)
@@ -42,6 +42,7 @@ use OCP\IUser;
 use OCP\UserMigration\IExportDestination;
 use OCP\UserMigration\IImportSource;
 use OCP\UserMigration\IMigrator;
+use OCP\UserMigration\ISizeEstimationMigrator;
 use OCP\UserMigration\TMigratorBasicVersionHandling;
 use Sabre\VObject\Component as VObjectComponent;
 use Sabre\VObject\Component\VCalendar;
@@ -53,7 +54,7 @@ use Safe\Exceptions\StringsException;
 use Symfony\Component\Console\Output\OutputInterface;
 use Throwable;
 
-class CalendarMigrator implements IMigrator {
+class CalendarMigrator implements IMigrator, ISizeEstimationMigrator {
 
        use TMigratorBasicVersionHandling;
 
index 068500a1ba7ba730443a62a7fbb0588a05de5ea7..5adf631f65e5acea8d36608d59a6ef44d5915e5c 100644 (file)
@@ -39,6 +39,7 @@ use OCP\IUser;
 use OCP\UserMigration\IExportDestination;
 use OCP\UserMigration\IImportSource;
 use OCP\UserMigration\IMigrator;
+use OCP\UserMigration\ISizeEstimationMigrator;
 use OCP\UserMigration\TMigratorBasicVersionHandling;
 use Sabre\VObject\Component\VCard;
 use Sabre\VObject\Parser\Parser as VObjectParser;
@@ -50,7 +51,7 @@ use Safe\Exceptions\StringsException;
 use Symfony\Component\Console\Output\OutputInterface;
 use Throwable;
 
-class ContactsMigrator implements IMigrator {
+class ContactsMigrator implements IMigrator, ISizeEstimationMigrator {
 
        use TMigratorBasicVersionHandling;
 
index 721ca59f9299ef2dcffaa6aca3c42a76245729fe..658f5015b0e377fefd4d52c7ba728915ef052e91 100644 (file)
@@ -36,11 +36,12 @@ use OCP\IUser;
 use OCP\UserMigration\IExportDestination;
 use OCP\UserMigration\IImportSource;
 use OCP\UserMigration\IMigrator;
+use OCP\UserMigration\ISizeEstimationMigrator;
 use OCP\UserMigration\TMigratorBasicVersionHandling;
 use OCP\UserMigration\UserMigrationException;
 use Symfony\Component\Console\Output\OutputInterface;
 
-class TrashbinMigrator implements IMigrator {
+class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
 
        use TMigratorBasicVersionHandling;
 
index 733d4a0b75d62bde3bb92cdff4affcf7ff85164b..79955a59fdeb41bcd13e903e997f8bc5fc29c37e 100644 (file)
@@ -37,11 +37,12 @@ use OCP\IUser;
 use OCP\UserMigration\IExportDestination;
 use OCP\UserMigration\IImportSource;
 use OCP\UserMigration\IMigrator;
+use OCP\UserMigration\ISizeEstimationMigrator;
 use OCP\UserMigration\TMigratorBasicVersionHandling;
 use Symfony\Component\Console\Output\OutputInterface;
 use Throwable;
 
-class AccountMigrator implements IMigrator {
+class AccountMigrator implements IMigrator, ISizeEstimationMigrator {
        use TMigratorBasicVersionHandling;
 
        use TAccountsHelper;