Remove redundant database objects

This reduces database connections and improves performance.
This commit is contained in:
FusionPBX
2024-08-05 14:22:17 -06:00
committed by GitHub
parent 00c803f53e
commit cd1cc70044
40 changed files with 0 additions and 169 deletions

View File

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