mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-16 13:38:26 +00:00
Change the name of method schema to upgrade
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user