Merged changeset #3588 into 0.9 and 0.10 branches. Fixed ws in trunk
This commit is contained in:
parent
6b484334a4
commit
e1580c4095
@ -35,7 +35,7 @@ class Doctrine_Task_DropDb extends Doctrine_Task
|
||||
public $description = 'Drop database for all existing connections',
|
||||
$requiredArguments = array(),
|
||||
$optionalArguments = array('force' => 'Whether or not to force the drop database task');
|
||||
|
||||
|
||||
public function execute()
|
||||
{
|
||||
if ( ! $this->getArgument('force')) {
|
||||
@ -49,10 +49,10 @@ class Doctrine_Task_DropDb extends Doctrine_Task
|
||||
}
|
||||
|
||||
$results = Doctrine::dropDatabases();
|
||||
|
||||
|
||||
foreach ($results as $name => $result) {
|
||||
$msg = $result instanceof Exception ? 'Could not drop database for connection: "' .$name . '." Failed with exception: ' . $result->getMessage():$result;
|
||||
|
||||
|
||||
$this->notify($msg);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user