From 32229776b0c6892cedc5365de3690e6cd00c913d Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Wed, 11 Jan 2023 12:06:52 +0100 Subject: [PATCH] MT#55932 Add new 'user_conf_priority' preference The preference is used only for device provisioning to give priority to user changes over the automated provisioning coming from the server. Change-Id: I65bb0b90b80e11aa34f7b56019f0b57319678cc0 --- db_scripts/diff/15749.down | 6 ++++++ db_scripts/diff/15749.up | 29 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 db_scripts/diff/15749.down create mode 100644 db_scripts/diff/15749.up 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