diff options
author | Simon Spannagel <simonspa@kth.se> | 2020-12-07 07:06:56 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-03-17 14:35:40 +0100 |
commit | 244e13cd433a0a30a0ca77537fc6711e90916775 (patch) | |
tree | a780c540b5849083d59064da7330f9768915c616 /core/Command | |
parent | 2445b9491e1c5a261d161d28643e3f30295cdd85 (diff) | |
download | nextcloud-server-244e13cd433a0a30a0ca77537fc6711e90916775.tar.gz nextcloud-server-244e13cd433a0a30a0ca77537fc6711e90916775.zip |
DB conversion: improve console output
Signed-off-by: Simon Spannagel <simonspa@kth.se>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/Db/ConvertType.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php index 6e20acf254b..d826b6a6c50 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('<info> - '.$app.'</info>'); 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('<info> - '.$table.'</info>'); $this->copyTable($fromDB, $toDB, $schema->getTable($table), $input, $output); } if ($input->getArgument('type') === 'pgsql') { |