mirror of https://github.com/sipwise/db-schema.git
Change-Id: I4171ffb797dba9a93ba8581daf9fc63369dd696bchanges/14/8514/3
parent
ebd20192e0
commit
144d001893
@ -0,0 +1,14 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
USE provisioning;
|
||||
|
||||
delete from voip_preferences where attribute = 'admin_name';
|
||||
delete from voip_preferences where attribute = 'admin_pass';
|
||||
delete from voip_preferences where attribute = 'ntp_server';
|
||||
delete from voip_preferences where attribute = 'ntp_sync';
|
||||
delete from voip_preferences where attribute = 'syslog_server';
|
||||
delete from voip_preferences where attribute = 'syslog_level';
|
||||
delete from voip_preferences where attribute = 'web_gui_dis';
|
||||
|
||||
delete from voip_preference_groups where name = 'CPBX Device Administration';
|
||||
|
||||
COMMIT;
|
@ -0,0 +1,28 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
USE provisioning;
|
||||
|
||||
INSERT INTO voip_preference_groups (name) VALUES ('CPBX Device Administration');
|
||||
SELECT LAST_INSERT_ID() INTO @cpbxdev_id;
|
||||
|
||||
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
|
||||
(@cpbxdev_id, 'admin_name', 'Admin name', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'string', 0, 'Name of the phone administrator.'),
|
||||
(@cpbxdev_id, 'admin_pass', 'Admin pass', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'string', 0, 'Password of the phone administrator.'),
|
||||
(@cpbxdev_id, 'ntp_server', 'NTP server', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'string', 0, 'NTP server URL.'),
|
||||
(@cpbxdev_id, 'ntp_sync', 'NTP server sync interval', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'int', 0, 'Synchronisation interval of NTP server.'),
|
||||
(@cpbxdev_id, 'syslog_server', 'Syslog server', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'string', 0, 'Syslog server URL.'),
|
||||
(@cpbxdev_id, 'syslog_level', 'Syslog level', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'int', 0, 'Syslog logging level.'),
|
||||
(@cpbxdev_id, 'web_gui_dis', 'Disable web gui', 0, 1, 0, 0, 0, 0, 0 ,0, 0, 1,
|
||||
now(), 0, 0, 'boolean', 0, 'Disable phone web interface.');
|
||||
|
||||
COMMIT;
|
@ -0,0 +1,10 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
USE provisioning;
|
||||
|
||||
delete from voip_preferences where attribute = 'FW_upg_dis';
|
||||
delete from voip_preferences where attribute = 'vdn_Panasonic_FW_ver';
|
||||
delete from voip_preferences where attribute = 'vdn_Panasonic_FW_autoupg_dis';
|
||||
|
||||
delete from voip_preference_groups where name = 'CPBX Device Firmware Settings';
|
||||
|
||||
COMMIT;
|
@ -0,0 +1,20 @@
|
||||
SET AUTOCOMMIT=0;
|
||||
USE provisioning;
|
||||
|
||||
INSERT INTO voip_preference_groups (name) VALUES ('CPBX Device Firmware Settings');
|
||||
SELECT LAST_INSERT_ID() INTO @cpbxfw_id;
|
||||
|
||||
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
|
||||
(@cpbxfw_id, 'FW_upg_dis', 'FW Upgrade disable', 0, 1, 0, 0, 0, 0, 0 ,0, 0, 1,
|
||||
now(), 0, 0, 'boolean', 0, 'Disable firmware upgrade.'),
|
||||
(@cpbxfw_id, 'vnd_Panasonic_FW_ver', 'FW version', 0, 1, 0, 0, 0, 0, 0 ,0, 1, 1,
|
||||
now(), 0, 0, 'string', 0, 'Expected firmware version.'),
|
||||
(@cpbxfw_id, 'vnd_Panasonic_FW_autoupg_dis', 'FW automatic upgrade disable', 0, 1, 0, 0, 0, 0, 0 ,0, 0, 1,
|
||||
now(), 0, 0, 'boolean', 0, 'Disable auto upgrade feature.');
|
||||
|
||||
COMMIT;
|
Loading…
Reference in new issue