protected function dropTable()
    {
        try {
            if ($this->db->schema->getTableSchema($this->table, true) !== null) {
                $this->db->createCommand()->dropTable($this->table)->execute();
                return $this->returnWarning(Yii::t('podium/flash', 'Table {name} has been dropped', ['name' => $this->rawTable]));
            }
            return true;
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during table {name} dropping', [
                    'name' => $this->rawTable
                ])
            );
        }
    }
protected function dropTable()
    {
        try {
            if ($this->db->schema->getTableSchema($this->table, true) !== null) {
                $this->db->createCommand()->dropTable($this->table)->execute();
                return $this->returnWarning(Yii::t('podium/flash', 'Table {name} has been dropped', ['name' => $this->rawTable]));
            }
            return true;
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during table {name} dropping', [
                    'name' => $this->rawTable
                ])
            );
        }
    }
protected function dropTable ( ) { try { if ( $ this -> db -> schema -> getTableSchema ( $ this -> table , true ) !== null ) { $ this -> db -> createCommand ( ) -> dropTable ( $ this -> table ) -> execute ( ) ; return $ this -> returnWarning ( Yii :: t ( 'podium/flash' , 'Table {name} has been dropped' , [ 'name' => $ this -> rawTable ] ) ) ; } return true ; } catch ( Exception $ e ) { return $ this -> returnError ( $ e -> getMessage ( ) , __METHOD__ , Yii :: t ( 'podium/flash' , 'Error during table {name} dropping' , [ 'name' => $ this -> rawTable ] ) ) ; } }
Drops current database table if it exists.
@return string|bool result message or true if no table to drop.
Drops current database table if it exists .