MT#9209 add 'use domain default' option to contract preference

changes/24/224/1
Andrew Pogrebennyk 11 years ago
parent 122c3ba8e1
commit 4e084631e9

@ -0,0 +1,9 @@
USE provisioning;
SET AUTOCOMMIT=0;
SELECT id INTO @pref_id FROM voip_preferences WHERE attribute='allowed_clis_reject_policy';
DELETE FROM voip_preferences_enum WHERE preference_id = @pref_id AND contract_pref=1 AND value IS NULL;
COMMIT;
SET AUTOCOMMIT=1;

@ -0,0 +1,13 @@
USE provisioning;
SET AUTOCOMMIT=0;
select id into @pref_id from voip_preferences where attribute = 'allowed_clis_reject_policy';
INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, contract_pref, default_val)
VALUES
(@pref_id, 'use domain default', NULL, 0, 0, 0, 1, 1);
COMMIT;
SET AUTOCOMMIT=1;
Loading…
Cancel
Save