Bläddra i källkod

Improved default message on doctrine:database:drop command

Albert Jessurum 14 år sedan
förälder
incheckning
bfb7d634bb

+ 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>');
         }
         }
     }
     }