Added a new command: propel:table:drop which allow to drop one, several or all table for a given connection by using the Symfony2 console
This commit is contained in:
parent
49abcb9161
commit
38150e71c9
2 changed files with 113 additions and 2 deletions
|
|
@ -25,9 +25,9 @@ class DatabaseDropCommand extends PhingCommand
|
|||
->addOption('force', null, InputOption::VALUE_NONE, 'Set this parameter to execute this action.')
|
||||
->addOption('connection', null, InputOption::VALUE_OPTIONAL, 'Set this parameter to define a connection to use')
|
||||
->setHelp(<<<EOT
|
||||
The <info>propel:database:drop</info> command will drop your database.</comment>.
|
||||
The <info>propel:database:drop</info> command will drop your database.
|
||||
|
||||
<info>php app/console propel:insert-sql</info>
|
||||
<info>php app/console propel:database:drop</info>
|
||||
|
||||
The <info>--force</info> parameter has to be used to actually drop the database.
|
||||
The <info>--connection</info> parameter allows you to change the connection to use.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue