From 8bfb098136f6b5564e67d98d20ca0e644a4fb882 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 21 Oct 2020 14:33:43 -0600 Subject: [PATCH] Update upgrade_schema.php Use the new php class data_types variable. --- core/upgrade/upgrade_schema.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/core/upgrade/upgrade_schema.php b/core/upgrade/upgrade_schema.php index 2a96e15171..04a305a122 100644 --- a/core/upgrade/upgrade_schema.php +++ b/core/upgrade/upgrade_schema.php @@ -42,14 +42,6 @@ //add multi-lingual support $language = new text; $text = $language->get(); - - //set the application_name - if (isset($argv[0])) { - $application_name = $argv[0]; - } - if (isset($argv[1]) && $argv[1] == 'data_types') { - $upgrade_data_types = 'true'; - } } else if (!$included) { include "root.php"; @@ -72,6 +64,9 @@ //get the database schema put it into an array then compare and update the database as needed. require_once "resources/classes/schema.php"; $obj = new schema; + if (isset($argv[1]) && $argv[1] == 'data_types') { + $obj->data_types = true; + } echo $obj->schema($format); //formatting for html