From 48dcee9d60459fce1542d11536d465f5d89cff55 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Wed, 22 Feb 2012 01:19:01 -0500 Subject: [PATCH] [DDC-1616] Removed non-SQL message and improve exportability of SchemaTool CreateCommand. --- .../ORM/Tools/Console/Command/SchemaTool/CreateCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php index d0b881806..388f0875a 100644 --- a/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php +++ b/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/CreateCommand.php @@ -65,12 +65,12 @@ EOT protected function executeSchemaCommand(InputInterface $input, OutputInterface $output, SchemaTool $schemaTool, array $metadatas) { - $output->write('ATTENTION: This operation should not be executed in a production environment.' . PHP_EOL . PHP_EOL); - if ($input->getOption('dump-sql') === true) { $sqls = $schemaTool->getCreateSchemaSql($metadatas); - $output->write(implode(';' . PHP_EOL, $sqls) . PHP_EOL); + $output->write(implode(';' . PHP_EOL, $sqls) . ';' . PHP_EOL); } else { + $output->write('ATTENTION: This operation should not be executed in a production environment.' . PHP_EOL . PHP_EOL); + $output->write('Creating database schema...' . PHP_EOL); $schemaTool->createSchema($metadatas); $output->write('Database schema created successfully!' . PHP_EOL);