Change the name of method schema to upgrade

This commit is contained in:
FusionPBX
2026-01-13 11:43:55 -07:00
committed by GitHub
parent afc9a733e7
commit 2975e166fc
2 changed files with 4 additions and 4 deletions

View File

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

View File

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