]> git.mxchange.org Git - friendica.git/commitdiff
Rename migration method for clarity in Repository\ProfileField
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 23 Jan 2020 19:00:35 +0000 (14:00 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 23 Jan 2020 19:00:42 +0000 (14:00 -0500)
src/Core/UserImport.php
src/Repository/ProfileField.php
update.php

index ffe680dc4c25782cfc52810a5adb092dbe40771f..f09db9868667198e63d1f8496ecadc7f738ae5a4 100644 (file)
@@ -263,7 +263,7 @@ class UserImport
                                $profile['id'] = DBA::lastInsertId();
                        }
 
-                       DI::profileField()->migrateFromProfile($profile);
+                       DI::profileField()->migrateFromLegacyProfile($profile);
                }
 
                ///@TODO Replace with permissionset import
index 8070aea4a21553797ecab94eb7b671327f7d6d35..b1b16dcf1fb13de9e391cad49f825814a6da3a39 100644 (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) {
index d73306881f097e69a9a2560a25165fe5482119f7..f86fea8dfd4c227b34327acb36d45fdf2a4bb312 100644 (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);