From cdcd49b473dc7bad4ffb500977b2b8ea5d6f676e Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 26 Apr 2016 16:24:50 +0200 Subject: Adding progress to occ maintenance:repair --- lib/private/Repair/DropOldTables.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/Repair/DropOldTables.php b/lib/private/Repair/DropOldTables.php index 15d5b9a3577..59e8487c2a3 100644 --- a/lib/private/Repair/DropOldTables.php +++ b/lib/private/Repair/DropOldTables.php @@ -55,12 +55,15 @@ class DropOldTables implements IRepairStep { * @throws \Exception in case of failure */ public function run(IOutput $output) { + $tables = $this->oldDatabaseTables(); + $output->startProgress(count($tables)); foreach ($this->oldDatabaseTables() as $tableName) { if ($this->connection->tableExists($tableName)){ - $output->info(sprintf('Table %s has been deleted', $tableName)); $this->connection->dropTable($tableName); } + $output->advance(); } + $output->finishProgress(); } /** -- cgit v1.2.3