fixes #692
This commit is contained in:
parent
e44bdb8e81
commit
3018a9e977
@ -34,10 +34,11 @@ class Doctrine_Task_DropDb extends Doctrine_Task
|
||||
{
|
||||
public $description = 'Drop database for all existing connections',
|
||||
$requiredArguments = array(),
|
||||
$optionalArguments = array();
|
||||
$optionalArguments = array('force' => 'Whether or not to force the drop database task');
|
||||
|
||||
public function execute()
|
||||
{
|
||||
if ( ! $this->getArgument('force')) {
|
||||
$answer = $this->ask('Are you sure you wish to drop your databases? (y/n)');
|
||||
|
||||
if ($answer != 'y') {
|
||||
@ -45,6 +46,7 @@ class Doctrine_Task_DropDb extends Doctrine_Task
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$results = Doctrine::dropDatabases();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user