diff --git a/tbl_addfield.php b/tbl_addfield.php index c5ae997e7..21abf792e 100644 --- a/tbl_addfield.php +++ b/tbl_addfield.php @@ -168,15 +168,6 @@ if (isset($submit_num_fields)) { $cfgRelation = PMA_getRelationsParam(); - // garvin: Update comment table, if a comment was set. - if (isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork'] && PMA_MYSQL_INT_VERSION < 40100) { - foreach ($field_comments AS $fieldindex => $fieldcomment) { - if (isset($field_name[$fieldindex]) && strlen($field_name[$fieldindex])) { - PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment, '', 'pmadb'); - } - } - } - // garvin: Update comment table for mime types [MIME] if (isset($field_mimetype) && is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME']) { foreach ($field_mimetype AS $fieldindex => $mimetype) { diff --git a/tbl_alter.php b/tbl_alter.php index 8fa3d2880..badcb3955 100644 --- a/tbl_alter.php +++ b/tbl_alter.php @@ -83,16 +83,6 @@ if (isset($do_save_data)) { $cfgRelation = PMA_getRelationsParam(); - // take care of pmadb internal comments here - // garvin: Update comment table, if a comment was set. - if (PMA_MYSQL_INT_VERSION < 40100 && isset($field_comments) && is_array($field_comments) && $cfgRelation['commwork']) { - foreach ($field_comments AS $fieldindex => $fieldcomment) { - if (isset($field_name[$fieldindex]) && strlen($field_name[$fieldindex])) { - PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment, $field_orig[$fieldindex], 'pmadb'); - } - } - } - // garvin: Rename relations&display fields, if altered. if (($cfgRelation['displaywork'] || $cfgRelation['relwork']) && isset($field_orig) && is_array($field_orig)) { foreach ($field_orig AS $fieldindex => $fieldcontent) { diff --git a/tbl_create.php b/tbl_create.php index e478aa075..ebcfa3303 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -9,7 +9,6 @@ * @uses $strTable * @uses $strHasBeenCreated * @uses PMA_ENGINE_KEYWORD - * @uses PMA_MYSQL_INT_VERSION * @uses PMA_Table::generateFieldSpec() * @uses PMA_checkParameters() * @uses PMA_generateCharsetQueryPart() @@ -185,7 +184,7 @@ if (isset($_REQUEST['do_save_data'])) { if (!empty($tbl_type) && ($tbl_type != 'Default')) { $sql_query .= ' ' . PMA_ENGINE_KEYWORD . ' = ' . $tbl_type; } - if (PMA_MYSQL_INT_VERSION >= 40100 && !empty($tbl_collation)) { + if (!empty($tbl_collation)) { $sql_query .= PMA_generateCharsetQueryPart($tbl_collation); } @@ -204,16 +203,6 @@ if (isset($_REQUEST['do_save_data'])) { $cfgRelation = PMA_getRelationsParam(); - // garvin: Update comment table, if a comment was set. - if (isset($field_comments) && is_array($field_comments) - && $cfgRelation['commwork'] && PMA_MYSQL_INT_VERSION < 40100) { - foreach ($field_comments as $fieldindex => $fieldcomment) { - if (isset($field_name[$fieldindex]) && strlen($field_name[$fieldindex])) { - PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment, '', 'pmadb'); - } - } - } - // garvin: Update comment table for mime types [MIME] if (isset($field_mimetype) && is_array($field_mimetype) && $cfgRelation['commwork'] && $cfgRelation['mimework'] diff --git a/tbl_indexes.php b/tbl_indexes.php index 2a0ec52c2..0a306ac68 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -220,10 +220,7 @@ elseif (!defined('PMA_IDX_INCLUDED') $edited_index_data = $indexes_data[$old_index]; - if ((PMA_MYSQL_INT_VERSION < 40002 - && $edited_index_info['Comment'] == 'FULLTEXT') - || (PMA_MYSQL_INT_VERSION >= 40002 - && $edited_index_info['Index_type'] == 'FULLTEXT')) { + if ($edited_index_info['Index_type'] == 'FULLTEXT') { $index_type = 'FULLTEXT'; } elseif ($index == 'PRIMARY') { $index_type = 'PRIMARY'; diff --git a/tbl_printview.php b/tbl_printview.php index 873785f83..a4518b631 100644 --- a/tbl_printview.php +++ b/tbl_printview.php @@ -170,9 +170,7 @@ foreach ($the_tables as $key => $table) { if ($have_rel) { echo '