mirror of https://github.com/sipwise/db-schema.git
Change-Id: I3715527d81f7c0304c44ef8ca7a1acb387640f2dchanges/68/41568/1
parent
ab5cfdd3c5
commit
ac3fdebc6b
@ -0,0 +1,17 @@
|
||||
USE provisioning;
|
||||
SET AUTOCOMMIT = 0;
|
||||
|
||||
SELECT id INTO @pgid FROM voip_preference_groups WHERE name = 'Number Manipulations';
|
||||
|
||||
INSERT INTO voip_preferences
|
||||
(`voip_preference_groups_id`, `attribute`, `label`, `type`, `max_occur`,
|
||||
`usr_pref`, `prof_pref`, `dom_pref`, `peer_pref`, `contract_pref`, `contract_location_pref`,
|
||||
`dev_pref`, `devprof_pref`, `modify_timestamp`, `internal`, `expose_to_customer`, `data_type`,
|
||||
`read_only`, `description`)
|
||||
VALUES
|
||||
(@pgid, 'upn_rewrite', 'User CLI rewrite', '0', '1',
|
||||
'1', '0', '0', '0', '0', '0',
|
||||
'0', '0', now(), '-1', '1', 'string',
|
||||
'0', 'Defines a rewrite CLI and and pattern. If the a-number of a call matches one of the associated patterns, the User-Provided-Number is set to the configured CLI.');
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,8 @@
|
||||
USE provisioning;
|
||||
SET AUTOCOMMIT = 0;
|
||||
|
||||
SELECT id INTO @pref_id FROM voip_preferences WHERE attribute='upn_rewrite';
|
||||
DELETE FROM voip_preferences_enum WHERE preference_id=@pref_id;
|
||||
DELETE FROM voip_preferences WHERE id=@pref_id;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in new issue