original_string: public function createTable($nameWithoutPrefix, $createDefinition)
      {
          $statement = sprintf("CREATE TABLE `%s` ( %s ) ENGINE=%s DEFAULT CHARSET=utf8 ;",
                               Common::prefixTable($nameWithoutPrefix),
                               $createDefinition,
                               $this->getTableEngine());
  
          try {
              Db::exec($statement);
          } catch (Exception $e) {
              // mysql code error 1050:table already exists
              // see bug #153 https://github.com/piwik/piwik/issues/153
              if (!$this->getDb()->isErrNo($e, '1050')) {
                  throw $e;
              }
          }
      }
code: public function createTable($nameWithoutPrefix, $createDefinition)
      {
          $statement = sprintf("CREATE TABLE `%s` ( %s ) ENGINE=%s DEFAULT CHARSET=utf8 ;",
                               Common::prefixTable($nameWithoutPrefix),
                               $createDefinition,
                               $this->getTableEngine());
  
          try {
              Db::exec($statement);
          } catch (Exception $e) {
              // mysql code error 1050:table already exists
              // see bug #153 https://github.com/piwik/piwik/issues/153
              if (!$this->getDb()->isErrNo($e, '1050')) {
                  throw $e;
              }
          }
      }
code_tokens: public function createTable ( $ nameWithoutPrefix , $ createDefinition ) { $ statement = sprintf ( "CREATE TABLE `%s` ( %s ) ENGINE=%s DEFAULT CHARSET=utf8 ;" , Common :: prefixTable ( $ nameWithoutPrefix ) , $ createDefinition , $ this -> getTableEngine ( ) ) ; try { Db :: exec ( $ statement ) ; } catch ( Exception $ e ) { // mysql code error 1050:table already exists // see bug #153 https://github.com/piwik/piwik/issues/153 if ( ! $ this -> getDb ( ) -> isErrNo ( $ e , '1050' ) ) { throw $ e ; } } }
docstring: Creates a new table in the database.
  
  @param string $nameWithoutPrefix The name of the table without any piwik prefix.
  @param string $createDefinition  The table create definition, see the "MySQL CREATE TABLE" specification for
  more information.
  @throws \Exception
docstring_tokens: Creates a new table in the database .