From 9742b328a8412a1195d1e48a5950496c576e9b3f Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Mon, 25 Feb 2019 09:46:17 +0100 Subject: [PATCH] NTR - Fix update command --- recovery/update/src/Command/UpdateCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recovery/update/src/Command/UpdateCommand.php b/recovery/update/src/Command/UpdateCommand.php index fd5476d9f04..ca6ddcd1914 100644 --- a/recovery/update/src/Command/UpdateCommand.php +++ b/recovery/update/src/Command/UpdateCommand.php @@ -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(''); @@ -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('');