diff --git a/db_scripts/diff/15619.down b/db_scripts/diff/15619.down new file mode 100644 index 00000000..1b23a71c --- /dev/null +++ b/db_scripts/diff/15619.down @@ -0,0 +1,12 @@ +USE provisioning; +SET autocommit=0; + + +SELECT id INTO @vpid FROM voip_preferences + WHERE attribute = 'outbound_to_user'; + +DELETE FROM voip_preferences_enum + WHERE preference_id=@vpid and value = 'pbx_extension'; + + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15619.up b/db_scripts/diff/15619.up new file mode 100644 index 00000000..791b5167 --- /dev/null +++ b/db_scripts/diff/15619.up @@ -0,0 +1,15 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vpid FROM voip_preferences + WHERE attribute = 'outbound_to_user'; + +INSERT INTO voip_preferences_enum +(preference_id, label, value, usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, contract_location_pref, dev_pref, devprof_pref, default_val) +VALUES ( + @vpid, 'intra-PBX extension OR Called user', + 'pbx_extension', + 1, 0, 1, 1, 0, 0, 0, 0, NULL +); + +COMMIT; \ No newline at end of file