table_column('question_sessions', '', 'comment', 'text', '', '', '', 'not null', 'sumpenalty');
}
+ if ($oldversion < 2006040900) {
+ modify_database('', "UPDATE prefix_question SET parent = id WHERE qtype ='random';");
+ }
+
return true;
}
table_column('question_sessions', '', 'comment', 'text', '', '', '', 'not null', 'sumpenalty');
}
+ if ($oldversion < 2006040900) {
+ modify_database('', "UPDATE prefix_question SET parent = id WHERE qtype ='random';");
+ }
+
return true;
}
// This fragment is called by moodle_needs_upgrading() and /admin/index.php
////////////////////////////////////////////////////////////////////////////////
-$module->version = 2006040600; // The (date) version of this module
+$module->version = 2006040900; // The (date) version of this module
$module->requires = 2006022400; // Requires this Moodle version
$module->cron = 0; // How often should cron check this module (seconds)?