moved upgrade function from app_defaults

moved upgrade function out to upgrade.php otherwise during initial
install all app_defaults get run twice
This commit is contained in:
Matthew Vale
2015-11-26 18:24:09 +00:00
parent b5eed9f0ef
commit efa20fb04b
3 changed files with 4 additions and 16 deletions
+4 -1
View File
@@ -67,7 +67,10 @@
$obj = new schema;
echo $obj->schema("text");
//run all app_defaults.php files
//request teh switch to perform upgrade functions
$obj = new install_switch;
$obj->upgrade();
require_once "resources/classes/domains.php";
$domain = new domains;
$domain->upgrade();