original_string: protected function dropIndex($name)
      {
          if (empty($name)) {
              return Yii::t('podium/flash', 'Installation aborted! Index name missing.');
          }
          try {
              $this->db->createCommand()->dropIndex($this->getIndexName($name), $this->table)->execute();
              return $this->returnWarning(Yii::t('podium/flash', 'Table index {name} has been dropped', [
                  'name' => $this->getIndexName($name)
              ]));
          } catch (Exception $e) {
              return $this->returnError($e->getMessage(), __METHOD__,
                  Yii::t('podium/flash', 'Error during table index {name} dropping', [
                      'name' => $this->getIndexName($name)
                  ])
              );
          }
      }
code: protected function dropIndex($name)
      {
          if (empty($name)) {
              return Yii::t('podium/flash', 'Installation aborted! Index name missing.');
          }
          try {
              $this->db->createCommand()->dropIndex($this->getIndexName($name), $this->table)->execute();
              return $this->returnWarning(Yii::t('podium/flash', 'Table index {name} has been dropped', [
                  'name' => $this->getIndexName($name)
              ]));
          } catch (Exception $e) {
              return $this->returnError($e->getMessage(), __METHOD__,
                  Yii::t('podium/flash', 'Error during table index {name} dropping', [
                      'name' => $this->getIndexName($name)
                  ])
              );
          }
      }
code_tokens: protected function dropIndex ( $ name ) { if ( empty ( $ name ) ) { return Yii :: t ( 'podium/flash' , 'Installation aborted! Index name missing.' ) ; } try { $ this -> db -> createCommand ( ) -> dropIndex ( $ this -> getIndexName ( $ name ) , $ this -> table ) -> execute ( ) ; return $ this -> returnWarning ( Yii :: t ( 'podium/flash' , 'Table index {name} has been dropped' , [ 'name' => $ this -> getIndexName ( $ name ) ] ) ) ; } catch ( Exception $ e ) { return $ this -> returnError ( $ e -> getMessage ( ) , __METHOD__ , Yii :: t ( 'podium/flash' , 'Error during table index {name} dropping' , [ 'name' => $ this -> getIndexName ( $ name ) ] ) ) ; } }
docstring: Drops database table index.
  @param string $name index name
  @return string result message
docstring_tokens: Drops database table index .