<?php //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// backup/restore utility.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
table_column('backup_ids','info','info','mediumtext','','','','not null');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
//Finally, return result
return $result;
<?PHP //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
modify_database('','ALTER TABLE prefix_block_pinned ADD INDEX pagetype (pagetype);');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function rss_client_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
}
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
-?>
\ No newline at end of file
+?>
<?php
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
if ($oldversion < 2004050500 and $result) {
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
//Finally, return result
return $result;
<?PHP //$Id$
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
//
-// This file keeps track of upgrades to Moodle's
-// blocks system.
-//
-// Sometimes, changes between versions involve
-// alterations to database structures and other
-// major things that may break installations.
-//
-// The upgrade function in this file will attempt
-// to perform all the necessary actions to upgrade
-// your older installtion to the current version.
-//
-// If there's something it cannot do itself, it
-// will tell you what you need to do.
-//
-// Versions are defined by backup_version.php
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
//
// This file is tailored to MySQL
$result = true; //Nothing to do
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
//Finally, return result
return $result;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this enrolment module
function enrol_authorize_upgrade($oldversion=0) {
execute_sql("ALTER TABLE `{$CFG->prefix}enrol_authorize` ADD paymentmethod enum('cc', 'echeck') NOT NULL default 'cc' AFTER `id`", true);
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return $result;
}
<?PHP //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this enrolment module
function enrol_paypal_upgrade($oldversion=0) {
$result = true;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return $result;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function assignment_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
include_once("$CFG->dirroot/mod/assignment/lib.php");
assignment_upgrade_submodules();
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function chat_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
table_column('chat_users', '', 'course', 'integer', '10', 'unsigned', '0', 'not null', '');
table_column('chat_users', '', 'lang' , 'varchar', '10', '' , '' , 'not null', '');
}
-
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function choice_upgrade($oldversion) {
global $CFG;
if ($oldversion < 2006020900) { //rename release column to showanswers - Release is now reserved word in mySql
table_column('choice', '`release`', 'showresults', 'TINYINT', '2', 'unsigned', 0, 'not null');
}
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function data_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
execute_sql("ALTER TABLE {$CFG->prefix}data_content CHANGE content3 content3 longtext NULL AFTER content2");
execute_sql("ALTER TABLE {$CFG->prefix}data_content CHANGE content4 content4 longtext NULL AFTER content3");
}
-
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function exercise_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
modify_database('','ALTER TABLE prefix_exercise_grades ADD INDEX exerciseid (exerciseid);');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function forum_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
execute_sql($sql);
}
}
-
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?PHP
+
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function hotpot_upgrade($oldversion) {
global $CFG;
$ok = true;
$ok = $ok && hotpot_update_to_v2_2();
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return $ok;
}
?>
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function journal_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
table_column('journal_entries', 'comment', 'entrycomment', 'text', '', '', '');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return $result;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function label_upgrade($oldversion) {
/// This function does anything necessary to upgrade
modify_database('','ALTER TABLE prefix_label ADD INDEX course (course);');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?PHP
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function lams_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?PHP
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function lesson_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
table_column('lesson', '', 'feedback', 'int', '3', 'unsigned', '1', 'not null', 'nextpagedefault');
table_column('lesson_default', '', 'feedback', 'int', '3', 'unsigned', '1', 'not null', 'nextpagedefault');
}
-
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function quiz_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
$success = $success && table_column('question', 'commentarytext', 'generalfeedback', 'text', '', '', '');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return $success;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function resource_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
table_column('resource','reference','reference','varchar','255','','','not null');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function scorm_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
execute_sql("INSERT INTO {$CFG->prefix}log_display (module, action, mtable, field) VALUES ('scorm', 'review', 'scorm', 'name');", false);
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
?>
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function survey_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
table_column('survey_questions','intro','intro','varchar','50','','','not null');
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?PHP
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function wiki_upgrade($oldversion) {
/// This function does anything necessary to upgrade
/// older versions to match current functionality
INDEX wiki_locks_ix(lockedseen)
);");
}
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php // $Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
function workshop_upgrade($oldversion) {
// This function does anything necessary to upgrade
// older versions to match current functionality
}
}
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_calculated_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_essay_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_match_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_multianswer_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_multichoice_upgrade($oldversion=0) {
$success = $success && table_column('question_multichoice', '', 'partiallycorrectfeedback', 'text', '', '', '');
$success = $success && table_column('question_multichoice', '', 'incorrectfeedback', 'text', '', '', '');
}
-
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return $success;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_numerical_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_randomsamatch_upgrade($oldversion=0) {
// This is a random questiontype and therefore answers are always shuffled, no need for this field
modify_database('', 'ALTER TABLE prefix_question_randomsamatch DROP shuffleanswers');
}
+
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_rqp_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_shortanswer_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}
<?php //$Id$
+// THIS FILE IS DEPRECATED! PLEASE DO NOT MAKE CHANGES TO IT!
+//
+// IT IS USED ONLY FOR UPGRADES FROM BEFORE MOODLE 1.7, ALL
+// LATER CHANGES SHOULD USE upgrade.php IN THIS DIRECTORY.
+
// MySQL commands for upgrading this question type
function qtype_truefalse_upgrade($oldversion=0) {
global $CFG;
+ ////// DO NOT ADD NEW THINGS HERE!! USE upgrade.php and the lib/ddllib.php functions.
+
return true;
}