]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/PostUpdate.php
Merge pull request #8566 from annando/write-tags
[friendica.git] / src / Database / PostUpdate.php
index 4a6507ff5f9f3e936bf7f37f0da3a0c2f3cb4949..9ae7691d5f353e4a02ae899d456b0d091852773e 100644 (file)
@@ -585,7 +585,9 @@ class PostUpdate
 
                Logger::info('Processed', ['rows' => $rows, 'last' => $id]);
 
-               if ($start_id == $id) {
+               // When there are less than 1,000 items processed this means that we reached the end
+               // The other entries will then be processed with the regular functionality
+               if ($rows < 1000) {
                        DI::config()->set('system', 'post_update_version', 1341);
                        Logger::info('Done');
                        return true;
@@ -655,7 +657,9 @@ class PostUpdate
 
                Logger::info('Processed', ['rows' => $rows, 'last' => $id]);
 
-               if ($start_id == $id) {
+               // When there are less than 1,000 items processed this means that we reached the end
+               // The other entries will then be processed with the regular functionality
+               if ($rows < 1000) {
                        DI::config()->set('system', 'post_update_version', 1342);
                        Logger::info('Done');
                        return true;