Upgrade: Enable ring group destinations by default

This commit is contained in:
FusionPBX
2023-01-22 11:19:50 -07:00
committed by GitHub
parent df6bc02489
commit d31d028a0c

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2019
Portions created by the Initial Developer are Copyright (C) 2019 - 2023
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -63,6 +63,14 @@ if ($domains_processed == 1) {
}
}
//enable ring group destinations by default
$sql = "update v_ring_group_destinations ";
$sql .= "set destination_enabled = true ";
$sql .= "where destination_enabled is null; ";
$database = new database;
$database->execute($sql, null);
unset($sql);
}
?>