You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-11-03 11:53:04 +03:00
Fix #11410 SPATIAL index option is not clickable. Spatial indexes are supported by InnoDB from MySQL 5.7.5
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
@@ -1504,7 +1504,9 @@ function PMA_getHtmlForCheckAllTableColumn($pmaThemeImage, $text_dir,
|
||||
);
|
||||
}
|
||||
|
||||
if (! empty($tbl_storage_engine) && $tbl_storage_engine == 'MYISAM') {
|
||||
if ((! empty($tbl_storage_engine) && $tbl_storage_engine == 'MYISAM')
|
||||
|| PMA_MYSQL_INT_VERSION >= 50705
|
||||
) {
|
||||
$html_output .= PMA_Util::getButtonOrImage(
|
||||
'submit_mult', 'mult_submit', 'submit_mult_spatial',
|
||||
__('Spatial'), 'b_spatial.png', 'spatial'
|
||||
@@ -2128,8 +2130,9 @@ function PMA_getHtmlForActionsInTableStructure($type, $tbl_storage_engine,
|
||||
$html_output .= PMA_getHtmlForActionRowInStructureTable(
|
||||
$type, $tbl_storage_engine,
|
||||
'spatial nowrap',
|
||||
(! in_array($type, $spatial_types)
|
||||
|| 'MYISAM' != $tbl_storage_engine
|
||||
! (in_array($type, $spatial_types)
|
||||
&& ('MYISAM' == $tbl_storage_engine
|
||||
|| PMA_MYSQL_INT_VERSION >= 50705)
|
||||
),
|
||||
false, $url_query, $primary, 'ADD SPATIAL',
|
||||
__('An index has been added on %s.'), 'Spatial',
|
||||
|
||||
Reference in New Issue
Block a user