From 5322de3fecbe181a665d2216953724e8696fecbc Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 4 Dec 2018 18:33:28 +0100 Subject: [PATCH] Show columns to update in CLI interface Signed-off-by: Morris Jobke --- core/Command/Db/ConvertFilecacheBigInt.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/Command/Db/ConvertFilecacheBigInt.php b/core/Command/Db/ConvertFilecacheBigInt.php index 5960b7aa9dd..eab64660ac4 100644 --- a/core/Command/Db/ConvertFilecacheBigInt.php +++ b/core/Command/Db/ConvertFilecacheBigInt.php @@ -79,7 +79,7 @@ class ConvertFilecacheBigInt extends Command { $column->setType(Type::getType(Type::BIGINT)); $column->setOptions(['length' => 20]); - $updates[] = $tableName . '.' . $columnName; + $updates[] = '* ' . $tableName . '.' . $columnName; } } } @@ -89,6 +89,10 @@ class ConvertFilecacheBigInt extends Command { return 0; } + $output->writeln('Following columns will be updated:'); + $output->writeln(''); + $output->writeln($updates); + $output->writeln(''); $output->writeln('This can take up to hours, depending on the number of files in your instance!'); if ($input->isInteractive()) {