mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove redundant database objects
This reduces database connections and improves performance.
This commit is contained in:
@@ -6,7 +6,6 @@ if ($domains_processed == 1) {
|
||||
$sql = "update v_dialplan_details ";
|
||||
$sql .= "set dialplan_detail_data = replace(dialplan_detail_data, '-','@') ";
|
||||
$sql .= "where dialplan_detail_type = 'conference' and dialplan_detail_data like '%-%';";
|
||||
$database = new database;
|
||||
$database->execute($sql);
|
||||
unset($sql);
|
||||
|
||||
@@ -17,7 +16,6 @@ if ($domains_processed == 1) {
|
||||
$sql .= " WHERE d.domain_uuid = c.domain_uuid ";
|
||||
$sql .= ") ";
|
||||
$sql .= "WHERE conference_context is null; ";
|
||||
$database = new database;
|
||||
$database->execute($sql);
|
||||
unset($sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user