Add proper pluralization into UpdateCommand
This commit is contained in:
parent
4680a7b861
commit
37f5c82d15
@ -131,7 +131,10 @@ EOT
|
||||
}
|
||||
$output->writeln('Updating database schema...');
|
||||
$schemaTool->updateSchema($metadatas, $saveMode);
|
||||
$output->writeln(sprintf('Database schema updated successfully! "<info>%s</info>" queries were executed', count($sqls)));
|
||||
|
||||
$pluralization = (1 === count($sqls)) ? 'query was' : 'queries were';
|
||||
|
||||
$output->writeln(sprintf('Database schema updated successfully! "<info>%s</info>" %s executed', count($sqls), $pluralization));
|
||||
}
|
||||
|
||||
if ($dumpSql || $force) {
|
||||
|
Loading…
Reference in New Issue
Block a user