Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402] [Versions 402 and 403]

   1  <?php
   2  // This file keeps track of upgrades to
   3  // the survey module
   4  //
   5  // Sometimes, changes between versions involve
   6  // alterations to database structures and other
   7  // major things that may break installations.
   8  //
   9  // The upgrade function in this file will attempt
  10  // to perform all the necessary actions to upgrade
  11  // your older installation to the current version.
  12  //
  13  // If there's something it cannot do itself, it
  14  // will tell you what you need to do.
  15  //
  16  // The commands in here will all be database-neutral,
  17  // using the methods of database_manager class
  18  //
  19  // Please do not forget to use upgrade_set_timeout()
  20  // before any action that may take longer time to finish.
  21  
  22  defined('MOODLE_INTERNAL') || die();
  23  
  24  function xmldb_survey_upgrade($oldversion) {
  25      global $CFG;
  26  
  27      // Automatically generated Moodle v3.9.0 release upgrade line.
  28      // Put any upgrade step following this.
  29  
  30      // Automatically generated Moodle v4.0.0 release upgrade line.
  31      // Put any upgrade step following this.
  32  
  33      // Automatically generated Moodle v4.1.0 release upgrade line.
  34      // Put any upgrade step following this.
  35  
  36      // Automatically generated Moodle v4.2.0 release upgrade line.
  37      // Put any upgrade step following this.
  38  
  39      return true;
  40  }