/** * drop an existing table * * @param string $name name of the table that should be dropped * @return void */ public function dropTable($name) { //$this->conn->beginNestedTransaction(); $result = $this->dropAutoincrement($name); $result = parent::dropTable($name); //$this->conn->completeNestedTransaction(); return $result; }
/** * Get the stucture of a field into an array. * * @param string $table name of the table on which the index is to be created * @param string $name name of the index to be created * @param array $definition associative array that defines properties of the index to be created. * @see Doctrine_Export::createIndex() * @return string */ public function createIndexSql($table, $name, array $definition) { $query = parent::createIndexSql($table, $name, $definition); if (isset($definition['where'])) { return $query . ' WHERE ' . $definition['where']; } return $query; }
/** * drop an existing table * * @param string $name name of the table that should be dropped * @return mixed MDB2_OK on success, a MDB2 error on failure * @access public */ public function dropTable($name) { $result = $this->_dropAutoincrement($name); $result = parent::dropTable($name); //$this->_silentCommit(); return $result; }