diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index b00a011657..3f5a6ab0ce 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -229,7 +229,7 @@ } //get the database schema put it into an array then compare and update the database as needed. - $response = $schema->schema($format ?? ''); + $response = $schema->upgrade($format ?? ''); if ($display_type === 'text') { foreach(explode("\n", $response) as $row) { echo " ".trim($row)."\n"; @@ -417,7 +417,7 @@ } //Update the table and field structure. - $response = $schema->schema("text"); + $response = $schema->upgrade("text"); if ($display_type === 'text') { foreach(explode("\n", $response) as $row) { echo " ".trim($row)."\n"; diff --git a/resources/classes/schema.php b/resources/classes/schema.php index c35bedbe80..468d1433e5 100644 --- a/resources/classes/schema.php +++ b/resources/classes/schema.php @@ -196,7 +196,7 @@ class schema { * * @return string */ - public function schema($format = '') { + public function upgrade($format = '') { //set the global variable global $text, $output_format; @@ -1036,6 +1036,6 @@ class schema { //example use //$schema = new schema(); //$schema->db_type = $db_type; -//$schema->schema(); +//$schema->upgrade(); //$result_array = $schema->obj['sql']; //print_r($result_array);