浏览代码

Merge remote branch 'ajessu/HelpMessage'

Fabien Potencier 14 年之前
父节点
当前提交
d2c36d57c8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Symfony/Bundle/DoctrineBundle/Command/DropDatabaseDoctrineCommand.php

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

@@ -71,7 +71,9 @@ EOT
                 $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
                 $output->writeln(sprintf('<error>%s</error>', $e->getMessage()));
             }
             }
         } else {
         } 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(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>');
             $output->writeln('<error>All data will be lost!</error>');
         }
         }
     }
     }