protected function dropForeign($name)
    {
        if (empty($name)) {
            return Yii::t('podium/flash', 'Installation aborted! Foreign key name missing.');
        }
        try {
            $this->db->createCommand()->dropForeignKey($this->getForeignName($name), $this->table)->execute();
            return $this->returnWarning(Yii::t('podium/flash', 'Table foreign key {name} has been dropped', [
                'name' => $this->getForeignName($name)
            ]));
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during table foreign key {name} dropping', [
                    'name' => $this->getForeignName($name)
                ])
            );
        }
    }
protected function dropForeign($name)
    {
        if (empty($name)) {
            return Yii::t('podium/flash', 'Installation aborted! Foreign key name missing.');
        }
        try {
            $this->db->createCommand()->dropForeignKey($this->getForeignName($name), $this->table)->execute();
            return $this->returnWarning(Yii::t('podium/flash', 'Table foreign key {name} has been dropped', [
                'name' => $this->getForeignName($name)
            ]));
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during table foreign key {name} dropping', [
                    'name' => $this->getForeignName($name)
                ])
            );
        }
    }
protected function dropForeign ( $ name ) { if ( empty ( $ name ) ) { return Yii :: t ( 'podium/flash' , 'Installation aborted! Foreign key name missing.' ) ; } try { $ this -> db -> createCommand ( ) -> dropForeignKey ( $ this -> getForeignName ( $ name ) , $ this -> table ) -> execute ( ) ; return $ this -> returnWarning ( Yii :: t ( 'podium/flash' , 'Table foreign key {name} has been dropped' , [ 'name' => $ this -> getForeignName ( $ name ) ] ) ) ; } catch ( Exception $ e ) { return $ this -> returnError ( $ e -> getMessage ( ) , __METHOD__ , Yii :: t ( 'podium/flash' , 'Error during table foreign key {name} dropping' , [ 'name' => $ this -> getForeignName ( $ name ) ] ) ) ; } }
Drops database table foreign key.
@param string $name key name
@return string result message
Drops database table foreign key .