Update schema dn domains

This commit is contained in:
Mark Crane
2014-07-15 10:30:31 +00:00
parent 205792242e
commit fa21e32f44
4 changed files with 27 additions and 154 deletions

View File

@@ -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);

View File

@@ -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();