diff --git a/db_scripts/diff/15749.down b/db_scripts/diff/15749.down new file mode 100644 index 00000000..24fa3fae --- /dev/null +++ b/db_scripts/diff/15749.down @@ -0,0 +1,6 @@ +USE provisioning; +SET autocommit = 0; + +DELETE FROM voip_preferences WHERE attribute = 'user_conf_priority'; + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15749.up b/db_scripts/diff/15749.up new file mode 100644 index 00000000..9ad525a8 --- /dev/null +++ b/db_scripts/diff/15749.up @@ -0,0 +1,29 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vpg_id FROM voip_preference_groups + WHERE name='CPBX Device Administration'; + +INSERT INTO voip_preferences + SET +voip_preference_groups_id = @vpg_id, +attribute = "user_conf_priority", +label = "User config priority over provisioning", +type = 0, +max_occur = 1, +usr_pref = 0, +prof_pref = 0, +dom_pref = 0, +peer_pref = 0, +contract_pref = 0, +contract_location_pref = 0, +dev_pref = 1, +devprof_pref = 1, +fielddev_pref = 1, +internal = 0, +expose_to_customer = 0, +data_type = "boolean", +read_only = 0, +description = "If set, the configuration done by the user directly on the phone have priority over the provisioning (attention: not all the phones support this option)."; + +COMMIT; \ No newline at end of file