mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Simplify the update_indexes
This commit is contained in:
@@ -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 "<table>\n";
|
||||
foreach($response as $row) {
|
||||
echo " ".trim($row['sql'])."<br />\n";
|
||||
}
|
||||
//echo "</table>\n";
|
||||
}
|
||||
$database->update_indexes();
|
||||
}
|
||||
|
||||
//process the apps defaults
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user