summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-26 16:24:50 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-28 13:52:01 +0200
commitcdcd49b473dc7bad4ffb500977b2b8ea5d6f676e (patch)
tree3ea910a2853ecff486e922c4f16c4c90a923badf /lib/private/Repair
parentba0099f73abc133cfc88ad2d7a25b86677d1c111 (diff)
downloadnextcloud-server-cdcd49b473dc7bad4ffb500977b2b8ea5d6f676e.tar.gz
nextcloud-server-cdcd49b473dc7bad4ffb500977b2b8ea5d6f676e.zip
Adding progress to occ maintenance:repair
Diffstat (limited to 'lib/private/Repair')
-rw-r--r--lib/private/Repair/DropOldTables.php5
1 files changed, 4 insertions, 1 deletions
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();
}
/**