mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-03-19 23:12:15 +00:00
Update schema dn domains
This commit is contained in:
@@ -446,10 +446,14 @@ include "root.php";
|
||||
|
||||
//datatase schema
|
||||
public function schema ($db, $db_type, $db_name, $response_output) {
|
||||
global $db;
|
||||
global $text; // pulls in language variable array
|
||||
global $response_format;
|
||||
global $upgrade_data_types;
|
||||
//set the global variables
|
||||
global $db;
|
||||
global $text; // pulls in language variable array
|
||||
global $response_format;
|
||||
global $upgrade_data_types;
|
||||
|
||||
//get the PROJECT PATH
|
||||
include "root.php";
|
||||
|
||||
//PHP PDO check if table or column exists
|
||||
//check if table exists
|
||||
@@ -850,8 +854,8 @@ include "root.php";
|
||||
|
||||
//example use
|
||||
//require_once "resources/classes/schema.php";
|
||||
//$schema = new schema;
|
||||
//$schema->db_type = $db_type;
|
||||
//$schema->sql();
|
||||
//$result_array = $schema->result['sql'];
|
||||
//$obj = new schema;
|
||||
//$obj->db_type = $db_type;
|
||||
//$obj->schema();
|
||||
//$result_array = $schema->obj['sql'];
|
||||
//print_r($result_array);
|
||||
|
||||
@@ -1355,7 +1355,14 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
|
||||
//make sure the database schema and installation have performed all necessary tasks
|
||||
$display_results = false;
|
||||
$display_type = 'none';
|
||||
require_once "core/upgrade/upgrade_schema.php";
|
||||
require_once "resources/classes/schema.php";
|
||||
$obj = new schema;
|
||||
$obj->schema($db, $db_type, $db_name, $display_type);
|
||||
|
||||
//run all app_defaults.php files
|
||||
require_once "resources/classes/domains.php";
|
||||
$domain = new domains;
|
||||
$domain->upgrade();
|
||||
|
||||
//synchronize the config with the saved settings
|
||||
save_switch_xml();
|
||||
|
||||
Reference in New Issue
Block a user