From bb0d6ce6f60da88c9366628baa96c49d08e8b7e9 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 30 Apr 2020 09:03:05 +0000 Subject: [PATCH] Better check for finished conversion --- src/Database/PostUpdate.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 4a6507ff5f..c2e96b68c6 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -585,7 +585,9 @@ class PostUpdate Logger::info('Processed', ['rows' => $rows, 'last' => $id]); - if ($start_id == $id) { + // When there are less than 100 items processed this means that we reached the end + // The other entries will then be processed with the regular functionality + if ($rows < 100) { 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 100 items processed this means that we reached the end + // The other entries will then be processed with the regular functionality + if ($rows < 100) { DI::config()->set('system', 'post_update_version', 1342); Logger::info('Done'); return true;