|Version 8 (modified by 13 years ago) ( diff ),|
List of Database Changes for iPeer version 2.0 to 2.1
This page will help us migrate iPeer users' databases from version 2.0 to 2.1. Make an entry to this database for each change you make to the iPeer database.
For each entry into this wiki page, please state:
- Date of the development iPeer Database change.
- Reason for change, and it's impact.
- Who performed the change.
- The *exact and complete* SQL statement that will perform the change.
July 15, 2010
Adding database version control for upgrading.
INSERT INTO `sys_parameters` ( `parameter_code` , `parameter_value` , `parameter_type` , `description` , `record_status` , `creator_id` , `created` , `updater_id` , `modified` ) VALUES ('database.version', '1', 'I', 'database version', 'A', '0', '0000-00-00 00:00:00', NULL , NULL);
June 16, 2010
This change was made for student's survey evaluation submissions. Since students submitting surveys are not tied to groups, their group values will be should NULL. Before, the default value for grp_event_id was zero, and, because of the relationship grp_event_id and submitter_id (onl one pair is allowed), the effect was that a single student could only submit one Survey, ever. This change remedies the situation, and no code needs to be changed to accommodate it. - Serge & Pan
ALTER TABLE `ipeer`.`evaluation_submissions` MODIFY COLUMN `grp_event_id` INTEGER DEFAULT NULL;
July 9, 2010
This change is made for student's rubrics evaluation submissions. Since students submitted rubric evaluations are not tied to the rubric, deleting a rubric does not fully remove students' evaluation data of that rubric. With the added 'rubric_id' field, the linkage is now complete and references would not be lost in the relationship specified between evaluation_rubrics and rubric tables. - Henry
ALTER TABLE evaluation_rubrics ADD COLUMN rubric_id INTEGER DEFAULT 0 NOT NULL;
List of Database Changes for iPeer version 2.1 to 2.2
(place your changes here)