Show columns to update in CLI interface

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-12-04 18:33:28 +01:00
parent faa988c099
commit d3b4127164
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 5 additions and 1 deletions

View File

@ -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('<comment>Following columns will be updated:</comment>');
$output->writeln('');
$output->writeln($updates);
$output->writeln('');
$output->writeln('<comment>This can take up to hours, depending on the number of files in your instance!</comment>');
if ($input->isInteractive()) {