1
0
mirror of synced 2024-12-15 07:36:03 +03:00
This commit is contained in:
zYne 2007-06-18 20:00:44 +00:00
parent 45ceb8b03b
commit a6a612332f

View File

@ -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
* @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