Simplify the update_indexes

This commit is contained in:
markjcrane
2025-12-21 00:21:01 -07:00
parent 1afc1daa88
commit abee34fced
3 changed files with 3 additions and 20 deletions

View File

@@ -154,14 +154,7 @@
message::add($text['message-upgrade_schema'], null, $message_timeout); message::add($text['message-upgrade_schema'], null, $message_timeout);
//update database foreign key indexes //update database foreign key indexes
$response = $database->update_indexes(); $database->update_indexes();
if (!empty($response)) {
//echo "<table>\n";
foreach($response as $row) {
echo " ".trim($row['sql'])."<br />\n";
}
//echo "</table>\n";
}
} }
//process the apps defaults //process the apps defaults

View File

@@ -237,12 +237,7 @@
} }
//update database foreign key indexes //update database foreign key indexes
$response = $database->update_indexes(); $database->update_indexes();
if ($display_type === 'text') {
foreach($response as $row) {
echo " ".trim($row['sql'])."\n";
}
}
} }

View File

@@ -355,12 +355,7 @@ function do_upgrade_schema() {
echo $obj->schema('text'); echo $obj->schema('text');
//update the database foreign key indexes //update the database foreign key indexes
$response = $database->update_indexes(); $database->update_indexes();
if ($display_type === 'text') {
foreach($response as $row) {
echo " ".trim($row['sql'])."\n";
}
}
} }
/** /**