From: Hypolite Petovan Date: Thu, 23 Jan 2020 19:00:35 +0000 (-0500) Subject: Rename migration method for clarity in Repository\ProfileField X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=451596f5b301df5fbded305fb1c870db0fec3bea;p=friendica.git Rename migration method for clarity in Repository\ProfileField --- diff --git a/src/Core/UserImport.php b/src/Core/UserImport.php index ffe680dc4c..f09db98686 100644 --- a/src/Core/UserImport.php +++ b/src/Core/UserImport.php @@ -263,7 +263,7 @@ class UserImport $profile['id'] = DBA::lastInsertId(); } - DI::profileField()->migrateFromProfile($profile); + DI::profileField()->migrateFromLegacyProfile($profile); } ///@TODO Replace with permissionset import diff --git a/src/Repository/ProfileField.php b/src/Repository/ProfileField.php index 8070aea4a2..b1b16dcf1f 100644 --- a/src/Repository/ProfileField.php +++ b/src/Repository/ProfileField.php @@ -231,7 +231,7 @@ class ProfileField extends BaseRepository * @param array $profile Profile table row * @throws \Exception */ - public function migrateFromProfile(array $profile) + public function migrateFromLegacyProfile(array $profile) { // Already processed, aborting if ($profile['is-default'] === null) { diff --git a/update.php b/update.php index d73306881f..f86fea8dfd 100644 --- a/update.php +++ b/update.php @@ -437,7 +437,7 @@ function update_1332() $profiles = DBA::select('profile', [], $condition); while ($profile = DBA::fetch($profiles)) { - DI::profileField()->migrateFromProfile($profile); + DI::profileField()->migrateFromLegacyProfile($profile); } DBA::close($profiles);