Skip to content

Commit

Permalink
Merge pull request #7467 in SW/shopware from ntr/5.5/fix-update-comma…
Browse files Browse the repository at this point in the history
…nd to 5.5

* commit '9742b328a8412a1195d1e48a5950496c576e9b3f':
  NTR - Fix update command
  • Loading branch information
soebbing committed Feb 25, 2019
2 parents 60ddd39 + 9742b32 commit 8a7a285
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recovery/update/src/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@ private function migrateDatabase()
$step = new MigrationStep($manager);
$offset = 0;
do {
$progress->setCurrent($offset);
$progress->setProgress($offset);
$result = $step->run($offset);
if ($result instanceof ErrorResult) {
throw new \Exception($result->getMessage(), 0, $result->getException());
}

$offset = $result->getOffset();
$progress->setCurrent($offset);
$progress->setProgress($offset);
} while ($result instanceof ValidResult);
$progress->finish();
$this->IOHelper->writeln('');
Expand Down Expand Up @@ -202,13 +202,13 @@ private function importSnippets()

$offset = 0;
do {
$progress->setCurrent($offset);
$progress->setProgress($offset);
$result = $snippetStep->run($offset);
if ($result instanceof ErrorResult) {
throw new \Exception($result->getMessage(), 0, $result->getException());
}
$offset = $result->getOffset();
$progress->setCurrent($offset);
$progress->setProgress($offset);
} while ($result instanceof ValidResult);
$progress->finish();
$this->IOHelper->writeln('');
Expand Down

0 comments on commit 8a7a285

Please sign in to comment.