Improved commands

This commit is contained in:
William DURAND 2011-06-22 16:47:19 +02:00
commit 35a56e8ca8
6 changed files with 16 additions and 6 deletions

View file

@ -33,6 +33,8 @@ class DatabaseCreateCommand extends PhingCommand
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$this->writeSection($output, '[Propel] You are running the command: propel:database:create');
list($name, $config) = $this->getConnection($input, $output);
$dbName = $this->parseDbName($config['connection']['dsn']);
$query = 'CREATE DATABASE '. $dbName .';';