diff --git a/Command/DatabaseDropCommand.php b/Command/DatabaseDropCommand.php index cfbb6a9..27f3fe4 100644 --- a/Command/DatabaseDropCommand.php +++ b/Command/DatabaseDropCommand.php @@ -82,7 +82,7 @@ EOT ), 'fg=white;bg=red'); } } else { - $output->writeln('You have to use --force to drop the database.'); + $output->writeln('You have to use the "--force" option to drop the database.'); } } } diff --git a/Command/TableDropCommand.php b/Command/TableDropCommand.php index 7c6689a..5131255 100644 --- a/Command/TableDropCommand.php +++ b/Command/TableDropCommand.php @@ -55,6 +55,8 @@ EOT */ protected function execute(InputInterface $input, OutputInterface $output) { + $this->writeSection($output, '[Propel] You are running the command: propel:table:drop'); + $tablesToDelete = $input->getArgument('table'); if ($input->getOption('force')) { @@ -76,8 +78,6 @@ EOT } } - $this->writeSection($output, '[Propel] You are running the command: propel:table:drop'); - try { list($name, $config) = $this->getConnection($input, $output); $connection = \Propel::getConnection($name); @@ -122,7 +122,7 @@ EOT } } else { - $output->writeln('You have to use --force to drop some table.'); + $output->writeln('You have to use the "--force" option to drop some tables.'); } } }