I have just upgraded to 1.6, but have encountered a few database upgrade problems.
For example
calculated plugin needs upgrading
match plugin needs upgrading
Anybody any idea what is causing them|
Thanks
Alistair
As a result of these errors I can't get into any of the Admin functions apart fro variables.
The actual errors are:
(mysql): CREATE TABLE mdl_question_calculated ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', answer int(10) unsigned NOT NULL default '0', tolerance varchar(20) NOT NULL default '0.0', tolerancetype int(10) NOT NULL default '1', correctanswerlength int(10) NOT NULL default '2', correctanswerformat int(10) NOT NULL default '2', PRIMARY KEY (id), KEY question (question), KEY answer (answer)) TYPE=MyISAM COMMENT='Options for questions of type calculated'
1050: Table 'mdl_question_calculated' already exists
Error
(mysql): CREATE TABLE mdl_question_match ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', subquestions varchar(255) NOT NULL default '', shuffleanswers tinyint(4) NOT NULL default '1', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Defines fixed matching questions'
1050: Table 'mdl_question_match' already exists
Error
(mysql): CREATE TABLE mdl_question_match_sub ( id int(10) unsigned NOT NULL auto_increment, code int(10) unsigned NOT NULL default '0', question int(10) unsigned NOT NULL default '0', questiontext text NOT NULL default '', answertext varchar(255) NOT NULL default '', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Defines the subquestions that make up a matching question'
1050: Table 'mdl_question_match_sub' already exists
Error
(mysql): CREATE TABLE mdl_question_multianswer ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', sequence text NOT NULL default '', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Options for multianswer questions'
1050: Table 'mdl_question_multianswer' already exists
Error
(mysql): CREATE TABLE mdl_question_multichoice ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', layout tinyint(4) NOT NULL default '0', answers varchar(255) NOT NULL default '', single tinyint(4) NOT NULL default '0', shuffleanswers tinyint(4) NOT NULL default '1', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Options for multiple choice questions'
1050: Table 'mdl_question_multichoice' already exists
Error
(mysql): CREATE TABLE mdl_question_numerical ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', answer int(10) unsigned NOT NULL default '0', tolerance varchar(255) NOT NULL default '0.0', PRIMARY KEY (id), KEY answer (answer), KEY question (question)) TYPE=MyISAM COMMENT='Options for numerical questions'
1050: Table 'mdl_question_numerical' already exists
Error
(mysql): CREATE TABLE mdl_question_randomsamatch ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', choose int(10) unsigned NOT NULL default '4', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Info about a random short-answer matching question'
1050: Table 'mdl_question_randomsamatch' already exists
Error
(mysql): CREATE TABLE mdl_question_rqp ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', type int(10) unsigned NOT NULL default '0', source longblob NOT NULL default '', format varchar(255) NOT NULL default '', flags tinyint(3) unsigned NOT NULL default '0', maxscore int(10) unsigned NOT NULL default '1', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Options for RQP questions'
1050: Table 'mdl_question_rqp' already exists
Error
(mysql): CREATE TABLE mdl_question_rqp_servers ( id int(10) unsigned NOT NULL auto_increment, typeid int(10) unsigned NOT NULL default '0', url varchar(255) NOT NULL default '', can_render tinyint(2) unsigned NOT NULL default '0', can_author tinyint(2) unsigned NOT NULL default '0', PRIMARY KEY (id)) TYPE=MyISAM COMMENT='Information about RQP servers'
1050: Table 'mdl_question_rqp_servers' already exists
Error
(mysql): CREATE TABLE mdl_question_rqp_states ( id int(10) unsigned NOT NULL auto_increment, stateid int(10) unsigned NOT NULL default '0', responses text NOT NULL default '', persistent_data text NOT NULL default '', template_vars text NOT NULL default '', PRIMARY KEY (id)) TYPE=MyISAM COMMENT='RQP question type specific state information'
1050: Table 'mdl_question_rqp_states' already exists
Error
(mysql): CREATE TABLE mdl_question_rqp_types ( id int(10) unsigned NOT NULL auto_increment, name varchar(255) NOT NULL default '', PRIMARY KEY (id), UNIQUE KEY name (name)) TYPE=MyISAM COMMENT='RQP question types'
1050: Table 'mdl_question_rqp_types' already exists
Error
(mysql): CREATE TABLE mdl_question_shortanswer ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', answers varchar(255) NOT NULL default '', usecase tinyint(2) NOT NULL default '0', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Options for short answer questions'
1050: Table 'mdl_question_shortanswer' already exists
Error
(mysql): CREATE TABLE mdl_question_truefalse ( id int(10) unsigned NOT NULL auto_increment, question int(10) unsigned NOT NULL default '0', trueanswer int(10) unsigned NOT NULL default '0', falseanswer int(10) unsigned NOT NULL default '0', PRIMARY KEY (id), KEY question (question)) TYPE=MyISAM COMMENT='Options for True-False questions'
1050: Table 'mdl_question_truefalse' already exists
Error
Exactly the same problem here (I started another thread here about it before I saw this one). I have tried looking through the source files briefly but can't find where this stage occurs to look at changing the code so instead of creating the tables it alters them... or at least deletes them before recreating, but I hope to no have to do that!
Looks like I might be restoring to 1.5.4
Hi everybody... I have the same problem . All the questionaire plugins can't be updated... some people talked about it in here...
I appreciate any help. Tnx.
Krla
I upgraded Moodle 1.54 to 1.61 today (after upgrading so my PHP and MySQL would meet the requirements) and ran into the same issue. I followed the steps given and the work-around worked like a champ.
Hello Tim,
I did delete the tables that were already existing like
mdl_questions_calculated
mdl_questions_match
and everything worked fine.
Now I am stuck users can not more see the courses they are enrolled in. Seems the enrollment is not working anymore. I was using the LDAP enrolment in addition to the internal one.
Any help?
Regrads,
Mostafa