original_string: public function convert_table_row_format($tablename) {
          $currentrowformat = $this->get_row_format($tablename);
          if ($currentrowformat == 'Compact' || $currentrowformat == 'Redundant') {
              $rowformat = ($this->is_compressed_row_format_supported(false)) ? "ROW_FORMAT=Compressed" : "ROW_FORMAT=Dynamic";
              $prefix = $this->get_prefix();
              $this->change_database_structure("ALTER TABLE {$prefix}$tablename $rowformat");
          }
      }
code: public function convert_table_row_format($tablename) {
          $currentrowformat = $this->get_row_format($tablename);
          if ($currentrowformat == 'Compact' || $currentrowformat == 'Redundant') {
              $rowformat = ($this->is_compressed_row_format_supported(false)) ? "ROW_FORMAT=Compressed" : "ROW_FORMAT=Dynamic";
              $prefix = $this->get_prefix();
              $this->change_database_structure("ALTER TABLE {$prefix}$tablename $rowformat");
          }
      }
code_tokens: public function convert_table_row_format ( $ tablename ) { $ currentrowformat = $ this -> get_row_format ( $ tablename ) ; if ( $ currentrowformat == 'Compact' || $ currentrowformat == 'Redundant' ) { $ rowformat = ( $ this -> is_compressed_row_format_supported ( false ) ) ? "ROW_FORMAT=Compressed" : "ROW_FORMAT=Dynamic" ; $ prefix = $ this -> get_prefix ( ) ; $ this -> change_database_structure ( "ALTER TABLE {$prefix}$tablename $rowformat" ) ; } }
docstring: Converts a table to either 'Compressed' or 'Dynamic' row format.
  
  @param string $tablename Name of the table to convert to the new row format.
docstring_tokens: Converts a table to either Compressed or Dynamic row format .