Prado\Util\TDbLogRoute::createDbTable PHP Метод

createDbTable() защищенный Метод

Creates the DB table for storing log messages.
protected createDbTable ( )
    protected function createDbTable()
    {
        $db = $this->getDbConnection();
        $driver = $db->getDriverName();
        $autoidAttributes = '';
        if ($driver === 'mysql') {
            $autoidAttributes = 'AUTO_INCREMENT';
        }
        $sql = 'CREATE TABLE ' . $this->_logTable . ' (
			log_id INTEGER NOT NULL PRIMARY KEY ' . $autoidAttributes . ',
			level INTEGER,
			category VARCHAR(128),
			logtime VARCHAR(20),
			message VARCHAR(255))';
        $db->createCommand($sql)->execute();
    }