diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-04-11 10:53:51 +0200 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-04-11 13:59:27 +0000 |
commit | dda51d49d7e108d149c042964f9c2e3efef14110 (patch) | |
tree | 0ddcd5bfa6d62cea44f4c086db5b4886077c31e9 /apps/files_trashbin | |
parent | 682468ef5cda2d3aefed9cd5db80021da22bb593 (diff) | |
download | nextcloud-server-dda51d49d7e108d149c042964f9c2e3efef14110.tar.gz nextcloud-server-dda51d49d7e108d149c042964f9c2e3efef14110.zip |
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/files_trashbin')
-rw-r--r-- | apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php index c7832ec5bc8..95ed25088b1 100644 --- a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php +++ b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php @@ -93,7 +93,7 @@ class TrashbinMigrator implements IMigrator { * {@inheritDoc} */ 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; } |