diff --git a/db_scripts/diff/15875.down b/db_scripts/diff/15875.down new file mode 100644 index 00000000..8e191d99 --- /dev/null +++ b/db_scripts/diff/15875.down @@ -0,0 +1,21 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vp_id FROM voip_preferences +WHERE attribute = 'call_log_level'; + +UPDATE voip_preferences +SET type = 1 +WHERE id = @vp_id; + +use kamailio; + +UPDATE usr_preferences +SET type = 1 +WHERE attribute = 'call_log_level'; + +UPDATE peer_preferences +SET type = 1 +WHERE attribute = 'call_log_level'; + +COMMIT; \ No newline at end of file diff --git a/db_scripts/diff/15875.up b/db_scripts/diff/15875.up new file mode 100644 index 00000000..ce0b0f0e --- /dev/null +++ b/db_scripts/diff/15875.up @@ -0,0 +1,21 @@ +USE provisioning; +SET autocommit=0; + +SELECT id INTO @vp_id FROM voip_preferences +WHERE attribute = 'call_log_level'; + +UPDATE voip_preferences +SET type = 0 +WHERE id = @vp_id; + +use kamailio; + +UPDATE usr_preferences +SET type = 0 +WHERE attribute = 'call_log_level'; + +UPDATE peer_preferences +SET type = 0 +WHERE attribute = 'call_log_level'; + +COMMIT; \ No newline at end of file diff --git a/schema/kamailio.sql b/schema/kamailio.sql index e75723b7..adfd3520 100644 --- a/schema/kamailio.sql +++ b/schema/kamailio.sql @@ -1279,7 +1279,7 @@ set autocommit=0; INSERT INTO `usr_preferences` VALUES (1,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','cloud_pbx_hunt_policy',0,'none','1900-01-01 00:00:01'); INSERT INTO `usr_preferences` VALUES (5,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','emergency_location_format',0,'cirpack','1900-01-01 00:00:01'); INSERT INTO `usr_preferences` VALUES (6,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','play_announce_before_recording',0,'never','1900-01-01 00:00:01'); -INSERT INTO `usr_preferences` VALUES (8,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','call_log_level',1,'notice','1900-01-01 00:00:01'); +INSERT INTO `usr_preferences` VALUES (8,'9bcb88b6-541a-43da-8fdc-816f5557ff93','no_such_number','voip.sipwise.local','call_log_level',0,'notice','1900-01-01 00:00:01'); commit; set autocommit=0; INSERT INTO `version` VALUES ('acc',5); diff --git a/schema/ngcp.sql b/schema/ngcp.sql index bae03feb..c845600c 100644 --- a/schema/ngcp.sql +++ b/schema/ngcp.sql @@ -25,7 +25,7 @@ CREATE TABLE `db_schema` ( PRIMARY KEY (`id`), UNIQUE KEY `rev_idx` (`revision`,`node`,`site_id`), KEY `release_idx` (`release`) -) ENGINE=InnoDB AUTO_INCREMENT=921 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; +) ENGINE=InnoDB AUTO_INCREMENT=922 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8mb4 */; @@ -30971,7 +30971,8 @@ INSERT INTO `db_schema` VALUES (916,15871,'spce','1970-01-01 00:00:01','trunk',1 INSERT INTO `db_schema` VALUES (917,15872,'spce','1970-01-01 00:00:01','trunk',1); INSERT INTO `db_schema` VALUES (918,15873,'spce','1970-01-01 00:00:01','trunk',1); INSERT INTO `db_schema` VALUES (919,15874,'spce','1970-01-01 00:00:01','trunk',1); -INSERT INTO `db_schema` VALUES (920,15876,'spce','1970-01-01 00:00:01','trunk',1); +INSERT INTO `db_schema` VALUES (920,15875,'spce','1970-01-01 00:00:01','trunk',1); +INSERT INTO `db_schema` VALUES (921,15876,'spce','1970-01-01 00:00:01','trunk',1); commit; set autocommit=0; INSERT INTO `timezone` VALUES ('1','localtime','1970-01-01 00:00:01','1970-01-01 00:00:01',NULL); diff --git a/schema/provisioning.sql b/schema/provisioning.sql index 9e55bcdf..c324033d 100644 --- a/schema/provisioning.sql +++ b/schema/provisioning.sql @@ -4164,7 +4164,7 @@ INSERT INTO `voip_preferences` VALUES (408,3,'otp_secret','OTP Secret',0,1,1,0,0 INSERT INTO `voip_preferences` VALUES (409,3,'show_otp_registration_info','Show OTP Registration Info',0,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',1,0,'boolean',1,'Show Time-based One-Time-Password (TOTP) secret and registration info for the next CSC logins.',0,0,0); INSERT INTO `voip_preferences` VALUES (410,3,'dnd','Do Not Disturb (DND) mode',1,1,1,1,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'boolean',0,'Enable Do Not Disturb (DND) mode. If activated the subscriber will not receive any call. The call forwards will not be taken into account.',0,0,1); INSERT INTO `voip_preferences` VALUES (411,4,'colr','Hide own number for inbound calls',1,1,1,0,0,0,0,0,0,0,0,'1970-01-01 00:00:01',0,1,'boolean',0,'\'Connected line identification restriction\' - if set to true, the CLI is not displayed to the remote party on incoming calls.',0,0,1); -INSERT INTO `voip_preferences` VALUES (412,8,'call_log_level','Debug log level',1,1,1,0,0,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'enum',0,'Define the log level verbosity preference for subscribers or peers. The level can be NOTICE, INFO or DEBUG.',0,0,0); +INSERT INTO `voip_preferences` VALUES (412,8,'call_log_level','Debug log level',0,1,1,0,0,1,0,0,0,0,0,'1970-01-01 00:00:01',0,0,'enum',0,'Define the log level verbosity preference for subscribers or peers. The level can be NOTICE, INFO or DEBUG.',0,0,0); commit; set autocommit=0; INSERT INTO `voip_preferences_enum` VALUES (8,62,'use domain default',NULL,1,1,0,0,NULL,0,0,0,0,NULL,NULL);