mirror of https://github.com/sipwise/db-schema.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
USE provisioning;
|
|
SET autocommit=0;
|
|
|
|
-- revert previous addition to 'outbound_pai_display' and 'outbound_from_display'
|
|
SELECT id INTO @vp_pai_id FROM voip_preferences
|
|
WHERE attribute = 'outbound_pai_display';
|
|
|
|
DELETE FROM voip_preferences_enum
|
|
WHERE preference_id=@vp_pai_id and value = 'rcv_display/np_display';
|
|
|
|
SELECT id INTO @vp_from_id FROM voip_preferences
|
|
WHERE attribute = 'outbound_from_display';
|
|
|
|
DELETE FROM voip_preferences_enum
|
|
WHERE preference_id=@vp_from_id and value = 'rcv_display/np_display';
|
|
|
|
|
|
-- add the option to 'outbound_pai_user' and 'outbound_from_user'
|
|
SELECT id INTO @vp_pai_id FROM voip_preferences
|
|
WHERE attribute = 'outbound_pai_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 (
|
|
@vp_pai_id, 'Received or Network-Provided Display-name',
|
|
'rcv_display/np_display',
|
|
1, 1, 1, 1, 0, 0, 0, 0, NULL
|
|
);
|
|
|
|
SELECT id INTO @vp_from_id FROM voip_preferences
|
|
WHERE attribute = 'outbound_from_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 (
|
|
@vp_from_id, 'Received or Network-Provided Display-name',
|
|
'rcv_display/np_display',
|
|
1, 1, 1, 1, 0, 0, 0, 0, NULL
|
|
);
|
|
|
|
COMMIT; |