Jelajahi Sumber

Merge remote branch 'ajessu/HelpMessage'

Fabien Potencier 14 tahun lalu
induk
melakukan
d2c36d57c8

+ 2 - 0
src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

@@ -71,7 +71,9 @@ EOT
                 $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
             }
         } else {
+            $output->writeln('<error>ATTENTION:</error> This operation should not be executed in a production enviroment.' . PHP_EOL);
             $output->writeln(sprintf('<info>Would drop the database named <comment>%s</comment>.</info>', $name));
+            $output->writeln('Please run the operation with --force to execute');
             $output->writeln('<error>All data will be lost!</error>');
         }
     }