[ Index ]

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

title

Body

[close]

/question/type/multichoice/db/ -> postgres7.php (source)

   1  <?php  // $Id: postgres7.php,v 1.4.8.1 2007/11/02 16:20:28 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  // PostgreSQL commands for upgrading this question type
   9  
  10  function qtype_multichoice_upgrade($oldversion=0) {
  11      global $CFG;
  12      $success = true;
  13      
  14      if ($success && $oldversion < 2006081900) {
  15          $success = $success && table_column('question_multichoice', '', 'correctfeedback', 'text', '', '', '');
  16          $success = $success && table_column('question_multichoice', '', 'partiallycorrectfeedback', 'text', '', '', '');
  17          $success = $success && table_column('question_multichoice', '', 'incorrectfeedback', 'text', '', '', '');
  18      }
  19  
  20      //////  DO NOT ADD NEW THINGS HERE!!  USE upgrade.php and the lib/ddllib.php functions.
  21  
  22      return $success;
  23  }
  24  
  25  ?>


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