Better check for finished conversion
This commit is contained in:
parent
88931e5053
commit
bb0d6ce6f6
1 changed files with 6 additions and 2 deletions
|
@ -585,7 +585,9 @@ class PostUpdate
|
||||||
|
|
||||||
Logger::info('Processed', ['rows' => $rows, 'last' => $id]);
|
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);
|
DI::config()->set('system', 'post_update_version', 1341);
|
||||||
Logger::info('Done');
|
Logger::info('Done');
|
||||||
return true;
|
return true;
|
||||||
|
@ -655,7 +657,9 @@ class PostUpdate
|
||||||
|
|
||||||
Logger::info('Processed', ['rows' => $rows, 'last' => $id]);
|
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);
|
DI::config()->set('system', 'post_update_version', 1342);
|
||||||
Logger::info('Done');
|
Logger::info('Done');
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue