From 98c8d05d427c6c5c4d085ac769608b44f58cf1d7 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 9 Nov 2014 12:31:58 +0100 Subject: [PATCH] Changed upgrade report to be more real-time --- src/Services/UpgradeService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Services/UpgradeService.php b/src/Services/UpgradeService.php index 91f4586e..14dd8fbb 100644 --- a/src/Services/UpgradeService.php +++ b/src/Services/UpgradeService.php @@ -40,7 +40,12 @@ final class UpgradeService if ($this->isUpgradeNeeded($upgrade)) { if ($verbose) + { echo 'Running ' . get_class($upgrade) . PHP_EOL; + if (ob_get_level()) + ob_flush(); + flush(); + } $this->runUpgrade($upgrade); } }