MT#33031 reseller_id preference set as internal

New record in voip_preferences for preference reseller_id

Change-Id: I15a144897cbb3e3a0980e9fcb73c0380a53d2141
mr11.4
Alessio Garzi 3 years ago
parent d7ad9934ae
commit 368a7b4782

@ -0,0 +1,6 @@
USE provisioning
SELECT id INTO @vpg_id FROM voip_preference_groups WHERE name = 'Internals';
DELETE FROM `voip_preferences`
WHERE voip_preference_groups_id=@vpid AND attribute IN ('reseller_id','concurrent_max_in_per_reseller','concurrent_max_per_reseller');

@ -0,0 +1,20 @@
SET AUTOCOMMIT=0;
USE provisioning;
SELECT id INTO @vpg_id FROM voip_preference_groups WHERE name = 'Internals';
INSERT INTO voip_preferences
SET
voip_preference_groups_id = @vpg_id,
attribute = "reseller_id",
label = "Internal Reseller #'",
type = 1,
max_occur = 1,
usr_pref = 1,
modify_timestamp=now(),
internal = 1,
data_type = 'int';
COMMIT;
Loading…
Cancel
Save