[ Index ]

PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008]

title

Body

[close]

/question/type/randomsamatch/db/ -> mysql.php (source)

   1  <?php  // $Id: mysql.php,v 1.4.8.1 2007/11/02 16:20:36 tjhunt Exp $
   2  
   3  // THIS FILE IS DEPRECATED!  PLEASE DO NOT MAKE CHANGES TO IT!
   4  //
   5  // IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL 
   6  // LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
   7  
   8  // MySQL commands for upgrading this question type
   9  
  10  function qtype_randomsamatch_upgrade($oldversion=0) {
  11      global $CFG;
  12  
  13      if ($oldversion < 2006042800) {
  14          // This is a random questiontype and therefore answers are always shuffled, no need for this field
  15          modify_database('', 'ALTER TABLE prefix_question_randomsamatch DROP shuffleanswers');
  16      }
  17  
  18      //////  DO NOT ADD NEW THINGS HERE!!  USE upgrade.php and the lib/ddllib.php functions.
  19  
  20      return true;
  21  }
  22  
  23  ?>


Generated: Wed Jan 14 11:33:29 2009 Cross-referenced by PHPXref 0.7