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

Updated SQL comments in CHANGELOG

This commit is contained in:
Adam Zammit
2013-03-08 13:05:59 +11:00
parent c2e620d213
commit af44a01bb6

View File

@@ -13,34 +13,34 @@ Database updates:
ALTER TABLE `case` ADD `token` VARCHAR( 36 ) NOT NULL ; ALTER TABLE `case` ADD `token` VARCHAR( 36 ) NOT NULL ;
To allow for accessing existing cases in new system, need to assign a "token" for each case: -- To allow for accessing existing cases in new system, need to assign a "token" for each case:
UPDATE `case` SET token = case_id; UPDATE `case` SET token = case_id;
ALTER TABLE `case` ADD UNIQUE (`token`); ALTER TABLE `case` ADD UNIQUE (`token`);
New outcomes for email invitation and online self completion: -- New outcomes for email invitation and online self completion:
INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`) VALUES INSERT INTO `outcome` (`outcome_id`, `aapor_id`, `description`, `default_delay_minutes`, `outcome_type_id`, `tryanother`, `contacted`, `tryagain`, `eligible`, `require_note`, `calc`) VALUES
(40, '1.1', 'Self completed online', 0, 4, 0, 1, 1, 1, 0, 'I'), (40, '1.1', 'Self completed online', 0, 4, 0, 1, 1, 1, 0, 'I'),
(41, '2.36', 'Self completion email invitation sent', 10080, 1, 0, 1, 1, 1, 0, 'O'); (41, '2.36', 'Self completion email invitation sent', 10080, 1, 0, 1, 1, 1, 0, 'O');
New sample variable type (Email address): -- New sample variable type (Email address):
INSERT INTO `sample_var_type` (`type`, `description`, `table`) VALUES INSERT INTO `sample_var_type` (`type`, `description`, `table`) VALUES
(8, 'Email address', ''); (8, 'Email address', '');
Specify details of respondent self completion: -- Specify details of respondent self completion:
ALTER TABLE `questionnaire` ADD `self_complete` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `info`, ALTER TABLE `questionnaire` ADD `self_complete` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `info`,
ADD `lime_mode` VARCHAR( 64 ) NULL COMMENT 'Limesurvey mode for respondent self completion' AFTER `self_complete` , ADD `lime_mode` VARCHAR( 64 ) NULL COMMENT 'Limesurvey mode for respondent self completion' AFTER `self_complete` ,
ADD `lime_template` VARCHAR( 128 ) NULL COMMENT 'Limesurvey template for respondent self completion' AFTER `lime_mode` , ADD `lime_template` VARCHAR( 128 ) NULL COMMENT 'Limesurvey template for respondent self completion' AFTER `lime_mode` ,
ADD `lime_endurl` VARCHAR( 256 ) NULL COMMENT 'Forwarding end URL for respondent self completion' AFTER `lime_template` ; ADD `lime_endurl` VARCHAR( 256 ) NULL COMMENT 'Forwarding end URL for respondent self completion' AFTER `lime_template` ;
Allow for enabling/disabling sample files: -- Allow for enabling/disabling sample files:
ALTER TABLE `sample_import` ADD `enabled` TINYINT( 1 ) NOT NULL DEFAULT '1'; ALTER TABLE `sample_import` ADD `enabled` TINYINT( 1 ) NOT NULL DEFAULT '1';
Contact phone should allow for char phone numbers: -- Contact phone should allow for char phone numbers:
ALTER TABLE `contact_phone` CHANGE `phone` `phone` CHAR( 30 ) NOT NULL ALTER TABLE `contact_phone` CHANGE `phone` `phone` CHAR( 30 ) NOT NULL