1
0
mirror of synced 2025-01-18 14:31:40 +03:00

Color message like the update tools

This commit is contained in:
Thomas Tourlourat 2013-07-19 11:33:35 +02:00
parent fbbb161987
commit 0c3581a1f8

View File

@ -115,8 +115,11 @@ EOT
}
if (count($sqls)) {
$output->writeln('Schema-Tool would execute ' . count($sqls) . ' queries to drop the database.');
$output->writeln('Please run the operation with --force to execute these queries or use --dump-sql to see them.');
$output->writeln(sprintf('The Schema-Tool would execute <info>"%s"</info> queries to update the database.', count($sqls)));
$output->writeln('Please run the operation by passing one - or both - of the following options:');
$output->writeln(sprintf(' <info>%s --force</info> to execute the command', $this->getName()));
$output->writeln(sprintf(' <info>%s --dump-sql</info> to dump the SQL statements to the screen', $this->getName()));
return 1;
}