Rename migration method for clarity in Repository\ProfileField

This commit is contained in:
Hypolite Petovan 2020-01-23 14:00:35 -05:00
parent a9695998e9
commit 451596f5b3
3 changed files with 3 additions and 3 deletions

View File

@ -263,7 +263,7 @@ class UserImport
$profile['id'] = DBA::lastInsertId();
}
DI::profileField()->migrateFromProfile($profile);
DI::profileField()->migrateFromLegacyProfile($profile);
}
///@TODO Replace with permissionset import

View File

@ -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) {

View File

@ -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);