asterisk 計費模塊

源代码在线查看: update-a2billing-v1.0.6-to-v1.0.8-mysql.sql

软件大小: 6324 K
上传用户: liuhong22008
关键词: asterisk
下载地址: 免注册下载 普通下载 VIP

相关代码

				--				-- A2Billing database - update database schema - v1.0.6 to update to v1.0.8				--								/*								To create the database : 								mysql -u root -p"root password" < UPDATE-a2billing-v1.0.6-to-v1.0.8-mysql.sql								*/								 				--				-- Predictive Dialer update  database - Create database schema				--																CREATE TABLE cc_campaign (				    id 							INT NOT NULL AUTO_INCREMENT,    				    campaign_name 				CHAR(50) NOT NULL,				    creationdate 				TIMESTAMP DEFAULT 'now()' NOT NULL,				    startingdate 				TIMESTAMP DEFAULT 'now()' NOT NULL,  				    expirationdate 				TIMESTAMP,				    description 				MEDIUMTEXT,				    id_trunk 					INT DEFAULT 0,				    secondusedreal 				INT DEFAULT 0,				    nb_callmade 				INT DEFAULT 0,				    enable 						INT DEFAULT 0 NOT NULL,				    PRIMARY KEY (id),				    UNIQUE cons_phonelistname (campaign_name)				);												CREATE TABLE cc_phonelist (				    id 								INT NOT NULL AUTO_INCREMENT,				    id_cc_campaign 					INT DEFAULT 0 NOT NULL,				    id_cc_card 						INT DEFAULT 0 NOT NULL,				    numbertodial 					CHAR(50) NOT NULL,				    name 							CHAR(60) NOT NULL,				    inuse 							INT DEFAULT 0,					    enable 							INT DEFAULT 1 NOT NULL,    				    num_trials_done 				INT DEFAULT 0,				    creationdate 					TIMESTAMP DEFAULT 'now()' NOT NULL,					    last_attempt 					TIMESTAMP DEFAULT 'now()' NOT NULL,  				    secondusedreal 					INT DEFAULT 0,				    additionalinfo 					MEDIUMTEXT,				    PRIMARY KEY (id)				);				CREATE INDEX ind_cc_phonelist_numbertodial ON cc_phonelist (numbertodial);												ALTER TABLE cc_card ADD COLUMN id_campaign INT;				ALTER TABLE cc_card ADD COLUMN num_trials_done BIGINT;				ALTER TABLE cc_card ALTER COLUMN num_trials_done SET DEFAULT 0;				UPDATE cc_card SET num_trials_done = '0';				ALTER TABLE cc_card ADD COLUMN callback CHAR(50);				ALTER TABLE cc_card ADD COLUMN loginkey CHAR(40);				ALTER TABLE cc_card ADD COLUMN activatedbyuser char(1) DEFAULT 'f' NOT NULL;							

相关资源