1
0
mirror of synced 2025-01-17 22:11:41 +03:00

Merged changeset #3588 into 0.9 and 0.10 branches. Fixed ws in trunk

This commit is contained in:
guilhermeblanco 2008-01-30 00:32:36 +00:00
parent 6b484334a4
commit e1580c4095

View File

@ -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);
}
}