mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update schema.php
This commit is contained in:
@@ -643,7 +643,7 @@ if (!class_exists('schema')) {
|
||||
}
|
||||
|
||||
//add or rename fields
|
||||
if ($this->db_column_exists ($db_type, $db_name, $table_name, $field['name']['deprecated'])) {
|
||||
if (isset($field['name']['deprecated']) && $this->db_column_exists ($db_type, $db_name, $table_name, $field['name']['deprecated'])) {
|
||||
if ($db_type == "pgsql") {
|
||||
$sql_update .= "ALTER TABLE ".$table_name." RENAME COLUMN ".$field['name']['deprecated']." to ".$field['name']['text'].";\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user