MDL-22054 converting block name strings to pluginname
[moodle.git] / blocks / participants / db / upgrade.php
CommitLineData
4ca6cfbf 1<?php
d7a71847 2
4ca6cfbf 3// This file keeps track of upgrades to
d7a71847 4// the participants block
5//
6// Sometimes, changes between versions involve
7// alterations to database structures and other
8// major things that may break installations.
9//
10// The upgrade function in this file will attempt
11// to perform all the necessary actions to upgrade
12// your older installtion to the current version.
13//
14// If there's something it cannot do itself, it
15// will tell you what you need to do.
16//
17// The commands in here will all be database-neutral,
b1f93b15 18// using the methods of database_manager class
775f811a 19//
20// Please do not forget to use upgrade_set_timeout()
21// before any action that may take longer time to finish.
d7a71847 22
775f811a 23function xmldb_block_participants_upgrade($oldversion) {
24 global $CFG, $DB;
d7a71847 25
775f811a 26 $dbman = $DB->get_manager();
d7a71847 27 $result = true;
28
4ca6cfbf
PS
29/// And upgrade begins here. For each one, you'll need one
30/// block of code similar to the next one. Please, delete
d7a71847 31/// this comment lines once this file start handling proper
32/// upgrade code.
33
34/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php
b1f93b15 35/// $result = result of database_manager methods
d7a71847 36/// }
37
38 return $result;
39}
40
4ca6cfbf 41