protected function _createTestTable() { $this->_table = Setup_Backend_Schema_Table_Factory::factory('Xml', $this->_tableXml); $this->_tableNames[] = $this->_table->name; try { $this->_backend->createTable($this->_table); } catch (Zend_Db_Statement_Exception $e) { $this->_backend->dropTable($this->_table->name); $this->_backend->createTable($this->_table); } }
/** * removes table from database * * @param string tableName */ public function dropTable($_tableName) { parent::dropTable($_tableName); try { $statement = 'DROP SEQUENCE ' . $this->_db->quoteIdentifier($this->_getIncrementSequenceName($_tableName)); $this->execQueryVoid($statement); } catch (Zend_Db_Statement_Exception $e) { if (Tinebase_Core::isLogLevel(Zend_Log::DEBUG)) { Tinebase_Core::getLogger()->debug(__METHOD__ . '::' . __LINE__ . " An exception was thrown while dropping sequence for table {$_tableName}: " . $e->getMessage() . "; This might be OK if the table had no sequencer."); } } }