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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> 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. the Initial Developer. All Rights Reserved.
Contributor(s): 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);
} }
?> ?>