[ 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 * Resource module upgrade code 20 * 21 * This file keeps track of upgrades to 22 * the resource module 23 * 24 * Sometimes, changes between versions involve 25 * alterations to database structures and other 26 * major things that may break installations. 27 * 28 * The upgrade function in this file will attempt 29 * to perform all the necessary actions to upgrade 30 * your older installation to the current version. 31 * 32 * If there's something it cannot do itself, it 33 * will tell you what you need to do. 34 * 35 * The commands in here will all be database-neutral, 36 * using the methods of database_manager class 37 * 38 * Please do not forget to use upgrade_set_timeout() 39 * before any action that may take longer time to finish. 40 * 41 * @package mod_resource 42 * @copyright 2009 Petr Skoda {@link http://skodak.org} 43 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 44 */ 45 46 defined('MOODLE_INTERNAL') || die; 47 48 function xmldb_resource_upgrade($oldversion) { 49 global $CFG, $DB; 50 51 $dbman = $DB->get_manager(); 52 53 54 // Moodle v2.2.0 release upgrade line 55 // Put any upgrade step following this 56 57 // Moodle v2.3.0 release upgrade line 58 // Put any upgrade step following this 59 60 61 // Moodle v2.4.0 release upgrade line 62 // Put any upgrade step following this 63 64 65 // Moodle v2.5.0 release upgrade line. 66 // Put any upgrade step following this. 67 68 69 // Moodle v2.6.0 release upgrade line. 70 // Put any upgrade step following this. 71 72 // Moodle v2.7.0 release upgrade line. 73 // Put any upgrade step following this. 74 75 // Moodle v2.8.0 release upgrade line. 76 // Put any upgrade step following this. 77 78 return true; 79 }
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 |