|
[
Permalink
| « Hide
]
Joseph Rézeau added a comment - 16/May/08 05:00 AM
Sorry, was wrong module...
Fixed install.xml to use a signed field for the rank field. Added update code for 1.9 installations primarily.
Upgrading with latest bug fix throws up errors on my local moodle installs:
------------------------------------------ on my moodle 1.9: questionnaire module needs upgrading Notice: Undefined variable: dbtype in C:\moodle\www\moodle19dev\moodle\lib\xmldb\classes\generators\mysql\mysql.class.php on line 166 ADOConnection._Execute(ALTER TABLE mdl_questionnaire_response_rank MODIFY COLUMN rank NULL DEFAULT NULL, false) % line 891, file: adodb.inc.php ErrorScroll to next warning ALTER TABLE mdl_questionnaire_response_rank MODIFY COLUMN rank NULL DEFAULT NULL
Scroll to previous warningUpgrading questionnaire from 2007120103 to 2007120104 FAILED!Scroll to continue button
Notice: Undefined variable: dbtype in C:\moodle\www\moodle20\moodle\lib\ddl\mysql_sql_generator.php on line 165 ADOConnection._Execute(ALTER TABLE mdl_questionnaire_response_rank MODIFY COLUMN rank NULL, false) % line 893, file: adodb.inc.php You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NULL' at line 1 ALTER TABLE mdl_questionnaire_response_rank MODIFY COLUMN rank NULL
Error Joseph Hmmm... Looks like you may have to define the entire field's attributes in order to make a change. Not sure why they provide direct functions then. I have committed another change. Can you test that?
The new committed change does work. I still get an error message, but the RANK field is corrected set. So all is well...
Joseph The error message I get (on moodle 2.0 only, no error on 1.9): ----------------------------------------------- questionnaire module needs upgrading Deprecated ddllib function used!
(mysql): ALTER TABLE mdl_questionnaire_response_rank MODIFY COLUMN rank BIGINT(11) NOT NULL DEFAULT 0 after choice_id |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||