1
0
mirror of synced 2024-12-05 03:06:05 +03:00

Add proper pluralization into UpdateCommand

This commit is contained in:
Thomas Lomas 2015-02-24 18:13:13 +00:00
parent 4680a7b861
commit 37f5c82d15

View File

@ -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) {