diff --git a/db_scripts/diff/10890.up b/db_scripts/diff/10890.up index 757489aa..6a0879ea 100644 --- a/db_scripts/diff/10890.up +++ b/db_scripts/diff/10890.up @@ -2,9 +2,11 @@ use kamailio; +SET FOREIGN_KEY_CHECKS = 0; truncate table lcr_rule; truncate table lcr_gw; truncate table lcr_rule_target; +SET FOREIGN_KEY_CHECKS = 1; INSERT INTO lcr_rule (lcr_id, prefix, from_uri, request_uri, stopper, enabled, group_id) SELECT 1, callee_prefix, caller_pattern, callee_pattern, 0, 1, group_id diff --git a/db_scripts/diff/10934.up b/db_scripts/diff/10934.up index 86347c2d..72120aac 100644 --- a/db_scripts/diff/10934.up +++ b/db_scripts/diff/10934.up @@ -3,9 +3,13 @@ update provisioning.voip_peer_hosts set transport=1 where transport is NULL; #now sync again provisioning and lcr use kamailio; + +SET FOREIGN_KEY_CHECKS = 0; truncate table lcr_rule; truncate table lcr_gw; truncate table lcr_rule_target; +SET FOREIGN_KEY_CHECKS = 1; + INSERT INTO lcr_rule (lcr_id, prefix, from_uri, request_uri, stopper, enabled, group_id) SELECT 1, callee_prefix, caller_pattern, callee_pattern, 0, 1, group_id FROM provisioning.voip_peer_rules;