Moodle release 2.5beta
[moodle.git] / question / type / multianswer / db / upgrade.php
CommitLineData
aeb15530 1<?php
d3603157 2// This file is part of Moodle - http://moodle.org/
dfdd5332 3//
d3603157
TH
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
dfdd5332 8//
d3603157
TH
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
dfdd5332 13//
d3603157
TH
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * Multi-answer question type upgrade code.
19 *
20 * @package qtype
21 * @subpackage multianswer
22 * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24 */
25
dfdd5332 26
a17b297d
TH
27defined('MOODLE_INTERNAL') || die();
28
29
d3603157
TH
30/**
31 * Upgrade code for the multi-answer question type.
32 * @param int $oldversion the version we are upgrading from.
33 */
775f811a 34function xmldb_qtype_multianswer_upgrade($oldversion) {
35 global $CFG, $DB;
dfdd5332 36
775f811a 37 $dbman = $DB->get_manager();
dfdd5332 38
c5a8abfe 39
46f2a936
AB
40 // Moodle v2.2.0 release upgrade line
41 // Put any upgrade step following this
42
99c3c503
AB
43 // Moodle v2.3.0 release upgrade line
44 // Put any upgrade step following this
45
46
6b9dfe73
EL
47 // Moodle v2.4.0 release upgrade line
48 // Put any upgrade step following this
49
50
a4cdd6d2
PS
51 return true;
52}