[system] / trunk / wwmoodle / wwassignment4 / moodle / mod / wwassignment / db / upgrade.php Repository:
ViewVC logotype

Diff of /trunk/wwmoodle/wwassignment4/moodle/mod/wwassignment/db/upgrade.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5682 Revision 5683
1<?php //$Id: upgrade.php,v 1.2 2008-05-24 02:29:18 gage Exp $ 1<?php //$Id: upgrade.php,v 1.3 2008-05-24 02:34:08 gage Exp $
2 2
3// This file keeps track of upgrades to 3// This file keeps track of upgrades to
4// the assignment module 4// the assignment module
5// 5//
6// Sometimes, changes between versions involve 6// Sometimes, changes between versions involve
50 $field->setAttributes(XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', 'webwork_set'); 50 $field->setAttributes(XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', 'webwork_set');
51 51
52 /// Launch add field timemodified 52 /// Launch add field timemodified
53 $result = $result && add_field($table, $field); 53 $result = $result && add_field($table, $field);
54 54
55 // can't do this until you are connected to webwork -- which you won't be on initial upgrades
56 // add this either to wwlink block or to configuration
57
55 notify('Processing assignment grades, this may take a while if there are many assignments...', 'notifysuccess'); 58 //notify('Processing assignment grades, this may take a while if there are many assignments...', 'notifysuccess');
56 // change grade typo to text if no grades MDL-13920 59 // change grade typo to text if no grades MDL-13920
57 require_once $CFG->dirroot.'/mod/wwassignment/lib.php'; 60 //require_once $CFG->dirroot.'/mod/wwassignment/lib.php';
58 // too much debug output 61 // too much debug output
59 $db->debug = false; 62 //$db->debug = false;
60 wwassignment_update_grades(); 63 //wwassignment_update_grades();
61 $db->debug = true; 64 //$db->debug = true;
62 } 65 }
63 66
64 return $result; 67 return $result;
65} 68}
66?> 69?>

Legend:
Removed from v.5682  
changed lines
  Added in v.5683

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9