SAK-11821 - Assignments Tool Conversion (2.x)
This conversion was a part of the post-2.4 assignments branch so those migrating from a version already running this can disregard this step.
In summary, the conversion script is necessary to
Remove existing duplicate submission records, if any
Prevent future submission duplicates by applying unique constraint on the ASSIGNMENT_SUBMISSION table
Improve performance of the Assignment tool
The conversion script does the following to the existing ASSIGNMENT_SUBMISSION table in Sakai database:
read in all tuples as AssignmentSubmission object, parse out data such as submitter_id, submit_time, submitted, and graded, and stores those attributes as separate columns in the ASSIGNMENT_SUBMISSION table;
Runs though the table, combine and remove submission duplicates (tuples with same "context" and "submitter_id" combination);
apply the unique constraint of "context" + "submitter_id" to ASSIGNMENT_SUBMISSION table.
There is a README file with detailed instructions on this process at https://source.sakaiproject.org/svn/assignment/tags/sakai_2-7-0.