original_string: protected function dropViews()
      {
          $views = $this->db->query(
              'SHOW FULL TABLES WHERE TABLE_TYPE LIKE "VIEW"',
              DbAdapter::QUERY_MODE_EXECUTE
          );
  
          foreach ($views as $view) {
              $this->db->query(
                  'DROP VIEW '.reset($view),
                  DbAdapter::QUERY_MODE_EXECUTE
              );
          }
      }
code: protected function dropViews()
      {
          $views = $this->db->query(
              'SHOW FULL TABLES WHERE TABLE_TYPE LIKE "VIEW"',
              DbAdapter::QUERY_MODE_EXECUTE
          );
  
          foreach ($views as $view) {
              $this->db->query(
                  'DROP VIEW '.reset($view),
                  DbAdapter::QUERY_MODE_EXECUTE
              );
          }
      }
code_tokens: protected function dropViews ( ) { $ views = $ this -> db -> query ( 'SHOW FULL TABLES WHERE TABLE_TYPE LIKE "VIEW"' , DbAdapter :: QUERY_MODE_EXECUTE ) ; foreach ( $ views as $ view ) { $ this -> db -> query ( 'DROP VIEW ' . reset ( $ view ) , DbAdapter :: QUERY_MODE_EXECUTE ) ; } }
docstring: Drop all views from the database
docstring_tokens: Drop all views from the database