diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-04-11 11:53:51 +0300 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-04-11 16:59:27 +0300 |
commit | dda51d49d7e108d149c042964f9c2e3efef14110 (patch) | |
tree | 0ddcd5bfa6d62cea44f4c086db5b4886077c31e9 /apps/dav | |
parent | 682468ef5cda2d3aefed9cd5db80021da22bb593 (diff) |
Use Migrators id instead of class names
This will help with UI and means migrators can move in namespaces
without changing export format.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/UserMigration/CalendarMigrator.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/UserMigration/ContactsMigrator.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/UserMigration/CalendarMigrator.php b/apps/dav/lib/UserMigration/CalendarMigrator.php index f560b4853b2..37a8de36d8d 100644 --- a/apps/dav/lib/UserMigration/CalendarMigrator.php +++ b/apps/dav/lib/UserMigration/CalendarMigrator.php @@ -414,7 +414,7 @@ class CalendarMigrator implements IMigrator { * @throws CalendarMigratorException */ public function import(IUser $user, IImportSource $importSource, OutputInterface $output): void { - if ($importSource->getMigratorVersion(static::class) === null) { + if ($importSource->getMigratorVersion($this->getId()) === null) { $output->writeln('No version for ' . static::class . ', skipping import…'); return; } diff --git a/apps/dav/lib/UserMigration/ContactsMigrator.php b/apps/dav/lib/UserMigration/ContactsMigrator.php index cfdc20bfdf3..99eea2700a5 100644 --- a/apps/dav/lib/UserMigration/ContactsMigrator.php +++ b/apps/dav/lib/UserMigration/ContactsMigrator.php @@ -306,7 +306,7 @@ class ContactsMigrator implements IMigrator { * @throws ContactsMigratorException */ public function import(IUser $user, IImportSource $importSource, OutputInterface $output): void { - if ($importSource->getMigratorVersion(static::class) === null) { + if ($importSource->getMigratorVersion($this->getId()) === null) { $output->writeln('No version for ' . static::class . ', skipping import…'); return; } |