From cc1dc7a822037df272f65f22b78e7656dbd56bb4 Mon Sep 17 00:00:00 2001 From: Nettika Date: Mon, 21 Apr 2025 01:03:11 -0700 Subject: [PATCH] Enable spatial indexes for Aria --- tbl_structure.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tbl_structure.php b/tbl_structure.php index 4cd4b0551..637a24bbb 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -429,10 +429,10 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { 'geometry', 'point', 'linestring', 'polygon', 'multipoint', 'multilinestring', 'multipolygon', 'geomtrycollection' ); - if (! in_array($type, $spatial_types) || 'MYISAM' != $tbl_type) { - $spatial_enabled = false; - } else { + if (in_array($type, $spatial_types) && ($tbl_type == 'MYISAM' || $tbl_type == 'ARIA' || $tbl_type == 'MARIA')) { $spatial_enabled = true; + } else { + $spatial_enabled = false; } ?> href="sql.php?&sql_query=&message_to_show=">