Commit a6a61233 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 45ceb8b0
...@@ -40,10 +40,11 @@ class Doctrine_Export_Pgsql extends Doctrine_Export ...@@ -40,10 +40,11 @@ class Doctrine_Export_Pgsql extends Doctrine_Export
* @throws PDOException * @throws PDOException
* @return void * @return void
*/ */
public function createDatabase($name) public function createDatabaseSql($name)
{ {
$query = 'CREATE DATABASE ' . $this->conn->quoteIdentifier($name); $query = 'CREATE DATABASE ' . $this->conn->quoteIdentifier($name);
$this->conn->exec($query);
return $query;
} }
/** /**
* drop an existing database * drop an existing database
...@@ -52,10 +53,11 @@ class Doctrine_Export_Pgsql extends Doctrine_Export ...@@ -52,10 +53,11 @@ class Doctrine_Export_Pgsql extends Doctrine_Export
* @throws PDOException * @throws PDOException
* @access public * @access public
*/ */
public function dropDatabase($name) public function dropDatabaseSql($name)
{ {
$query = 'DROP DATABASE ' . $this->conn->quoteIdentifier($name); $query = 'DROP DATABASE ' . $this->conn->quoteIdentifier($name);
$this->conn->exec($query);
return $query;
} }
/** /**
* getAdvancedForeignKeyOptions * getAdvancedForeignKeyOptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment