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

Merge pull request #1312 from ThomasLomas/master

Add proper pluralization into UpdateCommand
This commit is contained in:
Guilherme Blanco 2015-02-24 13:37:34 -05:00
commit 1369cdda2b

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