Use schema object name and upgrade for the method

This commit is contained in:
FusionPBX
2026-01-15 13:15:20 -07:00
committed by GitHub
parent a768bb8bc1
commit 4144cbc35e
2 changed files with 6 additions and 6 deletions

View File

@@ -351,8 +351,8 @@ function do_upgrade_schema() {
global $database;
//get the database schema put it into an array then compare and update the database as needed.
$obj = new schema();
echo $obj->schema('text');
$schema = new schema();
echo $schema->upgrade('text');
}
/**
@@ -428,8 +428,8 @@ function do_upgrade_defaults() {
echo $text['label-database'] . "\n";
//make sure the database schema and installation have performed all necessary tasks
$obj = new schema;
echo $obj->schema("text");
$schema = new schema;
echo $schema->upgrade("text");
//run all app_defaults.php files
$domain = new domains;

View File

@@ -59,8 +59,8 @@
$text = $language->get();
//get the database schema put it into an array then compare and update the database as needed.
$obj = new schema(['database' => $database]);
echo $obj->schema($format);
$schema = new schema(['database' => $database]);
echo $schema->upgrade($format);
//formatting for html
if (!$included && $format == 'html') {