2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Updated database for separate extension to operator

This commit is contained in:
Adam Zammit
2013-11-22 14:54:21 +11:00
parent bdeb64301a
commit 5d87591ecd
2 changed files with 41 additions and 4 deletions

View File

@@ -1,3 +1,27 @@
New Feature: Operators can choose extension
ALTER TABLE `operator` CHANGE `extension` `extension` VARCHAR( 10 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `extension` (
`extension_id` int(11) NOT NULL AUTO_INCREMENT,
`extension` char(10) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
`current_operator_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`extension_id`),
UNIQUE KEY `extension` (`extension`),
UNIQUE KEY `current_operator_id` (`current_operator_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
INSERT INTO `extension` (extension,password,current_operator_id,status)
SELECT extension,extension_password,operator_id,voip_status
FROM operator;
ALTER TABLE `operator`
DROP `extension`,
DROP `extension_password`,
DROP `voip_status`;
queXS 1.9.1 - Changes since 1.9.0
New Feature: Add caseid to SPSS output