Move update_indexes into the schema method

This commit is contained in:
FusionPBX
2026-01-12 14:17:10 -07:00
committed by GitHub
parent f5847e5e5b
commit 6f37951e02
4 changed files with 3 additions and 9 deletions

View File

@@ -152,9 +152,6 @@
$obj = new schema(['database' => $database]);
$_SESSION["response"]["schema"] = $obj->schema("html");
message::add($text['message-upgrade_schema'], null, $message_timeout);
//update database foreign key indexes
$database->update_indexes();
}
//process the apps defaults

View File

@@ -235,9 +235,6 @@
echo " ".trim($row)."\n";
}
}
//update database foreign key indexes
$database->update_indexes();
}

View File

@@ -353,9 +353,6 @@ function do_upgrade_schema() {
//get the database schema put it into an array then compare and update the database as needed.
$obj = new schema();
echo $obj->schema('text');
//update the database foreign key indexes
$database->update_indexes();
}
/**

View File

@@ -649,6 +649,9 @@ class schema {
//create views so that alter table statements complete
$this->database->views('create');
//update database foreign key indexes
$this->database->update_indexes();
//handle response
return $response;