From abee34fced6f39c9b1dc296ab4f142032da7cff9 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 21 Dec 2025 00:21:01 -0700 Subject: [PATCH] Simplify the update_indexes --- core/upgrade/index.php | 9 +-------- core/upgrade/upgrade.php | 7 +------ core/upgrade/upgrade_menu.php | 7 +------ 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/core/upgrade/index.php b/core/upgrade/index.php index 2b0891f07c..2c064311b7 100644 --- a/core/upgrade/index.php +++ b/core/upgrade/index.php @@ -154,14 +154,7 @@ message::add($text['message-upgrade_schema'], null, $message_timeout); //update database foreign key indexes - $response = $database->update_indexes(); - if (!empty($response)) { - //echo "\n"; - foreach($response as $row) { - echo " ".trim($row['sql'])."
\n"; - } - //echo "
\n"; - } + $database->update_indexes(); } //process the apps defaults diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index 84113f0d19..98d4379fe4 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -237,12 +237,7 @@ } //update database foreign key indexes - $response = $database->update_indexes(); - if ($display_type === 'text') { - foreach($response as $row) { - echo " ".trim($row['sql'])."\n"; - } - } + $database->update_indexes(); } diff --git a/core/upgrade/upgrade_menu.php b/core/upgrade/upgrade_menu.php index a446377cde..6351bd329f 100644 --- a/core/upgrade/upgrade_menu.php +++ b/core/upgrade/upgrade_menu.php @@ -355,12 +355,7 @@ function do_upgrade_schema() { echo $obj->schema('text'); //update the database foreign key indexes - $response = $database->update_indexes(); - if ($display_type === 'text') { - foreach($response as $row) { - echo " ".trim($row['sql'])."\n"; - } - } + $database->update_indexes(); } /**