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)
                ])
            );
        }
    }
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)
                ])
            );
        }
    }
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 ) ] ) ) ; } }
Drops database table index.
@param string $name index name
@return string result message
Drops database table index .