Make upgrade.php use the schema and domain upgrade classes
This commit is contained in:
parent
7b228d849d
commit
2147b08033
|
|
@ -78,8 +78,17 @@ if ($response_format == 'text') {
|
||||||
echo $text['label-database']."\n";
|
echo $text['label-database']."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
//upgrade the database schema
|
//make sure the database schema and installation have performed all necessary tasks
|
||||||
require_once "core/upgrade/upgrade_schema.php";
|
$display_results = false;
|
||||||
|
$display_type = 'none';
|
||||||
|
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();
|
||||||
|
|
||||||
//show the content
|
//show the content
|
||||||
if ($response_format == 'html') {
|
if ($response_format == 'html') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue