[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 3 // This file is part of Moodle - http://moodle.org/ 4 // 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. 9 // 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. 14 // 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 the wiki module 20 * 21 * Sometimes, changes between versions involve 22 * alterations to database structures and other 23 * major things that may break installations. 24 * 25 * The upgrade function in this file will attempt 26 * to perform all the necessary actions to upgrade 27 * your older installation to the current version. 28 * 29 * @package mod_wiki 30 * @copyright 2009 Marc Alier, Jordi Piguillem [email protected] 31 * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu 32 * 33 * @author Jordi Piguillem 34 * 35 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License 36 * 37 */ 38 39 function xmldb_wiki_upgrade($oldversion) { 40 global $CFG, $DB, $OUTPUT; 41 42 $dbman = $DB->get_manager(); 43 44 45 // Moodle v2.2.0 release upgrade line 46 // Put any upgrade step following this 47 48 // Moodle v2.3.0 release upgrade line 49 // Put any upgrade step following this 50 51 if ($oldversion < 2012061701) { 52 // Drop all legacy upgrade tables, not used anymore. 53 54 $table = new xmldb_table('wiki_entries_old'); 55 if ($dbman->table_exists('wiki_entries_old')) { 56 $dbman->drop_table($table); 57 } 58 59 $table = new xmldb_table('wiki_locks_old'); 60 if ($dbman->table_exists('wiki_locks_old')) { 61 $dbman->drop_table($table); 62 } 63 64 $table = new xmldb_table('wiki_pages_old'); 65 if ($dbman->table_exists('wiki_pages_old')) { 66 $dbman->drop_table($table); 67 } 68 69 upgrade_plugin_savepoint(true, 2012061701, 'mod', 'wiki'); 70 } 71 72 73 // Moodle v2.4.0 release upgrade line 74 // Put any upgrade step following this 75 76 77 // Moodle v2.5.0 release upgrade line. 78 // Put any upgrade step following this. 79 80 81 // Moodle v2.6.0 release upgrade line. 82 // Put any upgrade step following this. 83 84 // Moodle v2.7.0 release upgrade line. 85 // Put any upgrade step following this. 86 87 // Moodle v2.8.0 release upgrade line. 88 // Put any upgrade step following this. 89 90 return true; 91 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |