aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/UserMigration
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-04-11 10:53:51 +0200
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-04-11 13:59:27 +0000
commitdda51d49d7e108d149c042964f9c2e3efef14110 (patch)
tree0ddcd5bfa6d62cea44f4c086db5b4886077c31e9 /apps/settings/lib/UserMigration
parent682468ef5cda2d3aefed9cd5db80021da22bb593 (diff)
downloadnextcloud-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/settings/lib/UserMigration')
-rw-r--r--apps/settings/lib/UserMigration/AccountMigrator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/UserMigration/AccountMigrator.php b/apps/settings/lib/UserMigration/AccountMigrator.php
index a39c510813f..e4218d72a76 100644
--- a/apps/settings/lib/UserMigration/AccountMigrator.php
+++ b/apps/settings/lib/UserMigration/AccountMigrator.php
@@ -95,7 +95,7 @@ class AccountMigrator 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;
}