MT#9177 Add potentially yealink. Add storage for credentials.

ipeshinskaya/9177
Irina Peshinskaya 12 years ago
parent b91916fd07
commit 3cac4cb07d

@ -0,0 +1,2 @@
use billing;
drop table contract_vendor_credentials;

@ -0,0 +1,10 @@
use billing;
create table contract_vendor_credentials(
id int(11) unsigned not null primary key auto_increment,
contract_id int(11) unsigned not null,
vendor enum('panasonic','linksys','yealink'),
user varchar(255),
password varchar(255),
CONSTRAINT `c_v_c_contractid_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
);

@ -6,7 +6,7 @@ add column bootstrap_method enum('http','redirect_panasonic','redirect_linksys')
update autoprov_devices set bootstrap_method='http' where vendor='Cisco';
create table autoprov_sync_cisco(
`device_id` integer unsigned not null,
`device_id` int(11) unsigned not null,
`sync_uri` varchar(255) DEFAULT NULL,
`sync_method` enum('GET','POST') DEFAULT 'GET',
`sync_params` varchar(255) DEFAULT NULL,

@ -1,13 +1,13 @@
use provisioning;
alter table autoprov_devices
add column bootstrap_method enum('http','zte_panasonic','zte_linksys') not null default 'http';
add column bootstrap_method enum('http','redirect_panasonic','redirect_linksys','redirect_yealink') not null default 'http';
update autoprov_devices set bootstrap_method='http' where vendor='Cisco';
create table autoprov_sync_parameters(
`id` integer unsigned not null auto_increment primary key,
`bootstrap_method` enum('http','zte_panasonic','zte_linksys') not null default 'http',
`bootstrap_method` enum('http','redirect_panasonic','redirect_linksys','redirect_yealink') not null default 'http',
`parameter_name` enum('sync_uri','sync_method','sync_params','security_handler'),
`parameter_constraint` varchar(255),
UNIQUE KEY sync_parameter (bootstrap_method,parameter_name)

Loading…
Cancel
Save