mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Revert "[4.5] Fix the ALTER TABLE (#4097)"
This reverts commit 8822528227.
This commit is contained in:
@@ -648,11 +648,6 @@ if (!class_exists('schema')) {
|
||||
$sql_update .= "ALTER TABLE ".$table_name." ADD ".$field['name']." ".$field_type.";\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($field['exists'] == "false") {
|
||||
$sql_update .= "ALTER TABLE ".$table_name." ADD ".$field['name']["text"]." ".$field_type.";\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
//rename fields where the name has changed
|
||||
if (is_array($field['name'])) {
|
||||
|
||||
Reference in New Issue
Block a user