mirror of https://github.com/sipwise/db-schema.git
Update the log_debug preference from boolean version to enum with three log levels : NOTICE, INFO and DEBUG. Update the attribute name to call_log_level. Change-Id: Iab2edbaec82702d74859a687cb814f5c71c68d3fmr14.0
parent
f863fe359d
commit
646bb31e41
@ -0,0 +1,18 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
SELECT id INTO @vp_id FROM voip_preferences
|
||||
WHERE attribute = 'call_log_level';
|
||||
|
||||
UPDATE voip_preferences
|
||||
SET attribute = 'log_debug'
|
||||
WHERE id = @vp_id;
|
||||
|
||||
UPDATE voip_preferences
|
||||
SET data_type = 'boolean',
|
||||
description = "Enable scoped debug logging for subscriber, domain, or peer. When enabled, all log levels for dialogs in this scope are promoted to be recorded regardless of the global proxy log setting. The default is disabled."
|
||||
WHERE id = @vp_id;
|
||||
|
||||
DELETE FROM voip_preferences_enum WHERE preference_id = @vp_id;
|
||||
|
||||
COMMIT;
|
||||
@ -0,0 +1,23 @@
|
||||
USE provisioning;
|
||||
SET autocommit=0;
|
||||
|
||||
SELECT id INTO @vp_id FROM voip_preferences
|
||||
WHERE attribute = 'log_debug';
|
||||
|
||||
UPDATE voip_preferences
|
||||
SET attribute = 'call_log_level'
|
||||
WHERE id = @vp_id;
|
||||
|
||||
UPDATE voip_preferences
|
||||
SET data_type = 'enum',
|
||||
description = "Define the log level verbosity preference for subscribers or peers. The level can be NOTICE, INFO or DEBUG."
|
||||
WHERE id = @vp_id;
|
||||
|
||||
INSERT INTO voip_preferences_enum
|
||||
(preference_id, label, value, usr_pref, dom_pref, prof_pref, peer_pref, contract_pref, contract_location_pref, default_val)
|
||||
VALUES
|
||||
(@vp_id, 'NOTICE', 'notice', 1, 0, 0, 1, 0, 0, 1),
|
||||
(@vp_id, 'INFO', 'info', 1, 0, 0, 1, 0, 0, 0),
|
||||
(@vp_id, 'DEBUG', 'debug', 1, 0, 0, 1, 0, 0, 0);
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in new issue