<?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.
function backup_upgrade($oldversion=0) {
table_column('backup_courses', 'nextstarttime', 'nextstarttime', 'integer', '', '', '0');
}
+ ////// 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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
modify_database('','CREATE INDEX prefix_block_pinned_pagetype_idx ON prefix_block_pinned (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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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 pgsql
$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 PostgreSQL
$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 PostgreSQL
$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 PostgreSQL
$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.
+
// PostgreSQL commands for upgrading this enrolment module
function enrol_authorize_upgrade($oldversion=0) {
execute_sql("ALTER TABLE {$CFG->prefix}enrol_authorize ADD CONSTRAINT enroauth_pay_ck CHECK (paymentmethod IN ('cc', 'echeck'))", 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.
+
// PostgreSQL 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
modify_database('','ALTER TABLE prefix_chat_users ALTER lang SET 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 ALTER COLUMN content4 DROP NOT NULL");
execute_sql("ALTER TABLE {$CFG->prefix}data_content ALTER COLUMN content4 DROP DEFAULT");
}
-
+
+ ////// 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('','CREATE INDEX prefix_exercise_rubrics_exerciseid_idx ON prefix_exercise_rubrics (exerciseid);');
modify_database('','CREATE INDEX prefix_exercise_grades_exerciseid_idx ON prefix_exercise_grades (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
}
}
+ ////// 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!
+//
+// 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
+// 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('','CREATE INDEX prefix_label_course_idx ON prefix_label (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_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
$wtm->update( 'resource','alltext','options' );
}
+ ////// 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
execute_sql('SELECT setval(\''.$CFG->prefix.'survey_id_seq\', (select max(id) from '.$CFG->prefix.'survey))');
execute_sql('SELECT setval(\''.$CFG->prefix.'survey_questions_id_seq\', (select max(id) from '.$CFG->prefix.'survey_questions))');
}
+
+ ////// 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
}
+ ////// 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.
+
// PostgreSQL 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.
+
// PostgreSQL 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.
+
// PostgreSQL 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.
+
// PostgreSQL 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.
+
// PostgreSQL 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.
+
// PostgreSQL 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.
+
// PostgreSQL commands for upgrading this question type
function qtype_randomsamatch_upgrade($oldversion=0) {
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.
+
// PostgreSQL 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.
+
// PostgreSQL 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.
+
// PostgreSQL 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;
}