TDbCommand failed to execute the SQL statement "CREATE TABLE pradolog ( log_id INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT, level INTEGER, category VARCHAR(128), logtime VARCHAR(20), message VARCHAR(255))": SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'pradolog' already exists
/var/www/clients/client1/web4/web/prado/framework/Data/TDbCommand.php (196)
0185: // Prado::trace('Execute Command: '.$this->getDebugStatementText(), 'System.Data');
0186: if($this->_statement instanceof PDOStatement)
0187: {
0188: $this->_statement->execute();
0189: return $this->_statement->rowCount();
0190: }
0191: else
0192: return $this->getConnection()->getPdoInstance()->exec($this->getText());
0193: }
0194: catch(Exception $e)
0195: {
0196: throw new TDbException('dbcommand_execute_failed',$e->getMessage(),$this->getDebugStatementText());
0197: }
0198: }
0199:
0200: /**
0201: * @return String prepared SQL text for debugging purposes.
0202: */
0203: public function getDebugStatementText()
0204: {
0205: if(Prado::getApplication()->getMode() === TApplicationMode::Debug)
0206: return $this->_statement instanceof PDOStatement ?
0207: $this->_statement->queryString
0208: : $this->getText();
#0 /var/www/clients/client1/web4/web/prado/framework/Util/TLogRouter.php(886): TDbCommand->execute()
#1 /var/www/clients/client1/web4/web/prado/framework/Util/TLogRouter.php(842): TDbLogRoute->createDbTable()
#2 /var/www/clients/client1/web4/web/prado/framework/Util/TLogRouter.php(94): TDbLogRoute->init(Object(TXmlElement))
#3 /var/www/clients/client1/web4/web/prado/framework/Util/TLogRouter.php(72): TLogRouter->loadConfig(Object(TXmlElement))
#4 /var/www/clients/client1/web4/web/prado/framework/TApplication.php(909): TLogRouter->init(Object(TXmlElement))
#5 /var/www/clients/client1/web4/web/prado/framework/TApplication.php(956): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#6 /var/www/clients/client1/web4/web/prado/framework/TApplication.php(370): TApplication->initApplication()
#7 /var/www/clients/client1/web4/web/index.php(27): TApplication->run()
#8 {main}