mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-16 21:48:28 +00:00
Use schema object name and upgrade for the method
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user