Exemplo n.º 1
0
 /**
  * createDatabase
  *
  * Issue create database command for this instance of Doctrine_Connection
  *
  * @return string       Doctrine_Exception catched in case of failure
  */
 public function createDatabase()
 {
     if (!$this->dbh instanceof Doctrine_Adapter_Oracle) {
         parent::createDatabase();
     }
     try {
         // Issue create database command
         $this->export->createDatabase($this->dbh->getUserName());
     } catch (Exception $e) {
     }
     if (isset($e)) {
         return $e;
     } else {
         return 'Successfully created database for connection "' . $this->getName() . '" named "' . $this->dbh->getUserName() . '"';
     }
 }