original_string: protected function createTable($schema)
      {
          if (empty($schema)) {
              return Yii::t('podium/flash', 'Installation aborted! Database schema missing.');
          }
          try {
              $this->db->createCommand()->createTable($this->table, $schema, $this->tableOptions)->execute();
              return $this->returnSuccess(Yii::t('podium/flash', 'Table {name} has been created', ['name' => $this->rawTable]));
          } catch (Exception $e) {
              if ($this->_table != 'log') {
                  // in case of creating log table don't try to log error in it if it's not available
                  Yii::error($e->getMessage(), __METHOD__);
              }
              return Yii::t('podium/flash', 'Error during table {name} creating', [
                      'name' => $this->rawTable
                  ]) . ': ' . Html::tag('pre', $e->getMessage());
          }
      }
code: protected function createTable($schema)
      {
          if (empty($schema)) {
              return Yii::t('podium/flash', 'Installation aborted! Database schema missing.');
          }
          try {
              $this->db->createCommand()->createTable($this->table, $schema, $this->tableOptions)->execute();
              return $this->returnSuccess(Yii::t('podium/flash', 'Table {name} has been created', ['name' => $this->rawTable]));
          } catch (Exception $e) {
              if ($this->_table != 'log') {
                  // in case of creating log table don't try to log error in it if it's not available
                  Yii::error($e->getMessage(), __METHOD__);
              }
              return Yii::t('podium/flash', 'Error during table {name} creating', [
                      'name' => $this->rawTable
                  ]) . ': ' . Html::tag('pre', $e->getMessage());
          }
      }
code_tokens: protected function createTable ( $ schema ) { if ( empty ( $ schema ) ) { return Yii :: t ( 'podium/flash' , 'Installation aborted! Database schema missing.' ) ; } try { $ this -> db -> createCommand ( ) -> createTable ( $ this -> table , $ schema , $ this -> tableOptions ) -> execute ( ) ; return $ this -> returnSuccess ( Yii :: t ( 'podium/flash' , 'Table {name} has been created' , [ 'name' => $ this -> rawTable ] ) ) ; } catch ( Exception $ e ) { if ( $ this -> _table != 'log' ) { // in case of creating log table don't try to log error in it if it's not available Yii :: error ( $ e -> getMessage ( ) , __METHOD__ ) ; } return Yii :: t ( 'podium/flash' , 'Error during table {name} creating' , [ 'name' => $ this -> rawTable ] ) . ': ' . Html :: tag ( 'pre' , $ e -> getMessage ( ) ) ; } }
docstring: Creates database table.
  @param array $schema table schema
  @return string result message
  @since 0.2
docstring_tokens: Creates database table .