I have implemented most of the code to use update.php to upgrade to the newest version of the quiz module from version 1.1.

As of right now these are the known issues:
Score is not recalculated
Answers are not decoded from old format to new format but are not deleted so when someone writes a decoder, it can be converted to the new system.

What this does not do:
delete any necessary information which is needed for upgrade to the quiz head version.
convert your scores to the new system (maybe kscheirer can do this)
any converting from serialized to non serialized format. If it's serialized in 1.1 it isn't changed to the new schema.

Comments

westwesterson’s picture

StatusFileSize
new6.41 KB

Found 1 tiny bug.
Added vid to new quiz_node_result_options

DOWNLOAD THIS VERSION.

westwesterson’s picture

Title: Update database to current head version from quiz 1.1! (mysql only) » update_N: update from quiz 1.1! (mysql only)
Status: Active » Needs review
StatusFileSize
new7.2 KB

Fixed the score, so that it is changed to is_correct in quiz_multichoice_answers.

westwesterson’s picture

have sorted through the serialized arrays, unserialized they should look like the examples below.

table: quiz_question
field: properties

array(
  'multiple_answers' => 0
),

table: quiz_question_results
field: answer

array(
  'answers' => array(
    0 => array(
      'aid' => '7',
      'questions_nid' => '20',
      'answer' => 'correct answer',
      'feedback' => 'feedback goes here',
      'points' => '1',
    ),
    1 => array(
      'aid' => '8',
      'questions_nid' => '20',
      'answer' => 'false answer',
      'feedback' => 'feedback goes here',
      'points' => '0',
    ),
  ),
  'tried' => array(
    0 => '7'
  ),
),

still not sure when and if i will have time to attempt to transfer this data into the new schema via update_N

westwesterson’s picture

StatusFileSize
new7.14 KB

I have cleaned up and rerolled the old patch, for the newest version of quiz module. No other changes, aside from minor things to the documentation.

westwesterson’s picture

Status: Needs review » Closed (duplicate)

This discussion has moved to another issue, this is now a duplicate.