b8a342d7 |
1 | <?php //$Id$ |
ecfeb03a |
2 | |
3 | // This file keeps track of upgrades to |
4 | // the glossary module |
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 |
ecfeb03a |
19 | |
20 | function xmldb_glossary_upgrade($oldversion=0) { |
21 | |
219f652b |
22 | global $CFG, $THEME, $DB; |
ecfeb03a |
23 | |
24 | $result = true; |
25 | |
b8a342d7 |
26 | /// And upgrade begins here. For each one, you'll need one |
27 | /// block of code similar to the next one. Please, delete |
28 | /// this comment lines once this file start handling proper |
ecfeb03a |
29 | /// upgrade code. |
b8a342d7 |
30 | |
31 | /// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php |
b1f93b15 |
32 | /// $result = result of database_manager methods |
b8a342d7 |
33 | /// } |
baecd8cd |
34 | |
219f652b |
35 | //===== 1.9.0 upgrade line ======// |
ecfeb03a |
36 | |
37 | return $result; |
38 | } |
39 | |
40 | ?> |