weekly release 2.5dev
[moodle.git] / mod / forum / db / upgrade.php
CommitLineData
1adbd2c3 1<?php
b8a342d7 2
8f685009 3// This file is part of Moodle - http://moodle.org/
b8a342d7 4//
8f685009
SH
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
b8a342d7 9//
8f685009
SH
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
b8a342d7 14//
8f685009
SH
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17
18/**
19 * This file keeps track of upgrades to
20 * the forum module
21 *
22 * Sometimes, changes between versions involve
23 * alterations to database structures and other
24 * major things that may break installations.
25 *
26 * The upgrade function in this file will attempt
27 * to perform all the necessary actions to upgrade
2e0406a5 28 * your older installation to the current version.
8f685009
SH
29 *
30 * If there's something it cannot do itself, it
31 * will tell you what you need to do.
32 *
33 * The commands in here will all be database-neutral,
34 * using the methods of database_manager class
35 *
36 * Please do not forget to use upgrade_set_timeout()
37 * before any action that may take longer time to finish.
38 *
39 * @package mod-forum
40 * @copyright 2003 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
41 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
42 */
b8a342d7 43
775f811a 44function xmldb_forum_upgrade($oldversion) {
9146b979 45 global $CFG, $DB, $OUTPUT;
b8a342d7 46
4e781c7b 47 $dbman = $DB->get_manager(); // loads ddl manager and xmldb classes
b8a342d7 48
c5a8abfe 49
46f2a936
AB
50 // Moodle v2.2.0 release upgrade line
51 // Put any upgrade step following this
52
99c3c503
AB
53 // Moodle v2.3.0 release upgrade line
54 // Put any upgrade step following this
55
56
6b9dfe73
EL
57 // Moodle v2.4.0 release upgrade line
58 // Put any upgrade step following this
59
60
a4cdd6d2 61 return true;
b8a342d7 62}
63
1adbd2c3 64