mirror of https://github.com/sipwise/db-schema.git
At the same time the 'conference_pin' preference has been exposed to the profile preferences setting prof_pref = 1. Both the changes are needed to be able to configure and use them in the profile preference and tune what has to be shown in the CSC panel. Change-Id: I9f1c151100488b55f55250da08f653feb0e885f9mr26.1
parent
75882c9f17
commit
e18c11186d
@ -0,0 +1,14 @@
|
||||
use provisioning;
|
||||
set autocommit=0;
|
||||
|
||||
# Remove 'conference_pin' to profile preferences
|
||||
UPDATE voip_preferences SET
|
||||
prof_pref = 0
|
||||
WHERE attribute = 'conference_pin';
|
||||
|
||||
|
||||
# Remove new 'phonebook' internal preference
|
||||
DELETE FROM voip_preferences
|
||||
WHERE attribute = 'phonebook';
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,38 @@
|
||||
use provisioning;
|
||||
set autocommit=0;
|
||||
|
||||
# Add 'conference_pin' to profile preferences
|
||||
UPDATE voip_preferences SET
|
||||
prof_pref = 1
|
||||
WHERE attribute = 'conference_pin';
|
||||
|
||||
|
||||
# Add new 'phonebook' internal preference
|
||||
SELECT id INTO @vpg_id FROM voip_preference_groups WHERE name = 'Internals';
|
||||
|
||||
INSERT INTO voip_preferences SET
|
||||
voip_preference_groups_id = @vpg_id,
|
||||
attribute = 'phonebook',
|
||||
label = 'Phonebook',
|
||||
type = 1,
|
||||
max_occur = 1,
|
||||
usr_pref = 1,
|
||||
prof_pref = 0,
|
||||
dom_pref = 0,
|
||||
peer_pref = 0,
|
||||
contract_pref = 0,
|
||||
contract_location_pref = 0,
|
||||
dev_pref = 0,
|
||||
devprof_pref = 0,
|
||||
fielddev_pref = 0,
|
||||
modify_timestamp = now(),
|
||||
internal = 1,
|
||||
expose_to_customer = 1,
|
||||
data_type = 'boolean',
|
||||
read_only = 0,
|
||||
description = 'An internal flag for the phonebook pseudo-preference feature to be able to map it do subscriber profiles. Not directly used.',
|
||||
dynamic = 0,
|
||||
reseller_pref = 0,
|
||||
expose_to_subscriber = 1;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in new issue