mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Rename migration method for clarity in Repository\ProfileField
This commit is contained in:
parent
a9695998e9
commit
451596f5b3
3 changed files with 3 additions and 3 deletions
|
@ -263,7 +263,7 @@ class UserImport
|
|||
$profile['id'] = DBA::lastInsertId();
|
||||
}
|
||||
|
||||
DI::profileField()->migrateFromProfile($profile);
|
||||
DI::profileField()->migrateFromLegacyProfile($profile);
|
||||
}
|
||||
|
||||
///@TODO Replace with permissionset import
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue