diff --git a/db_scripts/diff/15081.down b/db_scripts/diff/15081.down new file mode 100644 index 00000000..76599947 --- /dev/null +++ b/db_scripts/diff/15081.down @@ -0,0 +1,9 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'force_strict_number_match'; + +SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = 'Number Manipulations'; +SELECT id INTO @new_vpgid FROM voip_preference_groups WHERE name = 'Call Blockings'; + +UPDATE voip_preferences SET voip_preference_groups_id=@new_vpgid WHERE attribute='clir_intrapbx' + AND voip_preference_groups_id=@vpgid; diff --git a/db_scripts/diff/15081.up b/db_scripts/diff/15081.up new file mode 100644 index 00000000..dbe059ef --- /dev/null +++ b/db_scripts/diff/15081.up @@ -0,0 +1,18 @@ +USE provisioning; +set autocommit = 0; + +SELECT id INTO @vpgid FROM voip_preference_groups WHERE name = 'Number Manipulations'; + +INSERT INTO voip_preferences VALUES + (NULL, @vpgid, 'force_strict_number_match', 'Strict Number Matching', 1, 1, 1, 1, 0, 0, now(), 0, 1, + 'boolean', 0, '"Strict Number Matching" - if set to true the dialed number must match subscriber exactly. Dialing arbitrary extension behind subscriber number is not allowed.' + ); + +-- move clir_intrapbx from the Call Blockings to Number Manipulations group + +SELECT id INTO @old_vpgid FROM voip_preference_groups WHERE name = 'Call Blockings'; + +UPDATE voip_preferences SET voip_preference_groups_id=@vpgid WHERE attribute='clir_intrapbx' + AND voip_preference_groups_id=@old_vpgid; + +commit;