From 244e13cd433a0a30a0ca77537fc6711e90916775 Mon Sep 17 00:00:00 2001 From: Simon Spannagel Date: Mon, 7 Dec 2020 07:06:56 +0100 Subject: [PATCH] DB conversion: improve console output Signed-off-by: Simon Spannagel --- core/Command/Db/ConvertType.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 6e20acf254..d826b6a6c5 100644 --- a/core/Command/Db/ConvertType.php +++ b/core/Command/Db/ConvertType.php @@ -246,6 +246,7 @@ class ConvertType extends Command implements CompletionAwareInterface { $schemaManager = new \OC\DB\MDB2SchemaManager($toDB); $apps = $input->getOption('all-apps') ? \OC_App::getAllApps() : \OC_App::getEnabledApps(); foreach ($apps as $app) { + $output->writeln(' - '.$app.''); if (file_exists(\OC_App::getAppPath($app).'/appinfo/database.xml')) { $schemaManager->createDbFromStructure(\OC_App::getAppPath($app).'/appinfo/database.xml'); } else { @@ -327,6 +328,7 @@ class ConvertType extends Command implements CompletionAwareInterface { } $progress = new ProgressBar($output, $count); + $progress->setFormat('very_verbose'); $progress->start(); $redraw = $count > $chunkSize ? 100 : ($count > 100 ? 5 : 1); $progress->setRedrawFrequency($redraw); @@ -382,6 +384,7 @@ class ConvertType extends Command implements CompletionAwareInterface { $result->closeCursor(); } $progress->finish(); + $output->writeln(''); } protected function getColumnType(Table $table, $columnName) { @@ -414,7 +417,7 @@ class ConvertType extends Command implements CompletionAwareInterface { try { // copy table rows foreach ($tables as $table) { - $output->writeln($table); + $output->writeln(' - '.$table.''); $this->copyTable($fromDB, $toDB, $schema->getTable($table), $input, $output); } if ($input->getArgument('type') === 'pgsql') {