mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
embedded "add custom outcome" and "delete custom outcome" feature for admin only
custom outcomes "delete" enabled starting from id=100, so DB update (in CHANGELOG) is not required but RECOMMENDED
This commit is contained in:
@@ -63,6 +63,9 @@ ALTER TABLE `outcome` ADD `default` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1' COM
|
||||
/* -- define and set mandatory(constant) outcome_id's --*/
|
||||
UPDATE `outcome` SET `permanent` = '1' WHERE `outcome`.`outcome_id` IN (1,2,3,7,9,10,14,17,18,19) ;
|
||||
|
||||
/* -- set AUTO_INCREMENT to 100 @ `outcome` to reserve some id's -- */
|
||||
ALTER TABLE `outcome` AUTO_INCREMENT = '100';
|
||||
|
||||
/* -- add `outcomes` parameter , define default list of outcome_ID's to be enabled for new questionnaries --*/
|
||||
ALTER TABLE `questionnaire` ADD `outcomes` VARCHAR(256) NULL DEFAULT '1,2,3,7,9,10,14,17,18,19' COMMENT 'Comma-separated string of outcomes defined for the questionnaire' AFTER `enabled`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user