MDL-28169 Installation Added 2.1 upgrade (idiot proof) lines to upgrade scripts.
authorAparup Banerjee <aparup@moodle.com>
Tue, 5 Jul 2011 10:09:40 +0000 (18:09 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 7 Jul 2011 03:40:38 +0000 (11:40 +0800)
48 files changed:
auth/manual/db/upgrade.php
auth/mnet/db/upgrade.php
blocks/community/db/upgrade.php
blocks/html/db/upgrade.php
blocks/navigation/db/upgrade.php
blocks/settings/db/upgrade.php
enrol/authorize/db/upgrade.php
enrol/imsenterprise/db/upgrade.php
enrol/mnet/db/upgrade.php
enrol/paypal/db/upgrade.php
filter/mediaplugin/db/upgrade.php
filter/tex/db/upgrade.php
lib/db/upgrade.php
message/output/email/db/upgrade.php
message/output/jabber/db/upgrade.php
message/output/popup/db/upgrade.php
mod/assignment/db/upgrade.php
mod/chat/db/upgrade.php
mod/choice/db/upgrade.php
mod/data/db/upgrade.php
mod/feedback/db/upgrade.php
mod/folder/db/upgrade.php
mod/forum/db/upgrade.php
mod/glossary/db/upgrade.php
mod/imscp/db/upgrade.php
mod/label/db/upgrade.php
mod/lesson/db/upgrade.php
mod/page/db/upgrade.php
mod/quiz/db/upgrade.php
mod/quiz/report/overview/db/upgrade.php
mod/quiz/report/statistics/db/upgrade.php
mod/resource/db/upgrade.php
mod/scorm/db/upgrade.php
mod/survey/db/upgrade.php
mod/url/db/upgrade.php
mod/wiki/db/upgrade.php
mod/workshop/db/upgrade.php
mod/workshop/form/accumulative/db/upgrade.php
mod/workshop/form/comments/db/upgrade.php
mod/workshop/form/numerrors/db/upgrade.php
mod/workshop/form/rubric/db/upgrade.php
question/type/calculated/db/upgrade.php
question/type/essay/db/upgrade.php
question/type/match/db/upgrade.php
question/type/multianswer/db/upgrade.php
question/type/multichoice/db/upgrade.php
question/type/numerical/db/upgrade.php
theme/formal_white/db/upgrade.php

index dcfe7bd..2034856 100644 (file)
@@ -45,5 +45,8 @@ function xmldb_auth_manual_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011022700, 'auth', 'manual');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 6ac021a..824d873 100644 (file)
@@ -43,5 +43,8 @@ function xmldb_auth_mnet_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010071300, 'auth', 'mnet');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 2b1ee0a..d9b398f 100644 (file)
@@ -73,6 +73,8 @@ function xmldb_block_community_upgrade($oldversion) {
         upgrade_block_savepoint(true, 2010042701, 'community');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
\ No newline at end of file
index 5fb67ba..66e0a59 100644 (file)
@@ -63,5 +63,8 @@ function xmldb_block_html_upgrade($oldversion) {
         upgrade_block_savepoint(true, 2010071900, 'html');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 6c70efc..60a5dad 100644 (file)
@@ -72,5 +72,8 @@ function xmldb_block_navigation_upgrade($oldversion, $block) {
         upgrade_block_savepoint(true, 2010091400, 'navigation');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
\ No newline at end of file
index ea48cd7..865fefc 100644 (file)
@@ -72,5 +72,8 @@ function xmldb_block_settings_upgrade($oldversion, $block) {
         upgrade_block_savepoint(true, 2010091400, 'settings');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
\ No newline at end of file
index 573e7fa..51ff315 100644 (file)
@@ -93,5 +93,8 @@ function xmldb_enrol_authorize_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010081203, 'enrol', 'authorize');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index a7d9841..36291c5 100644 (file)
@@ -80,6 +80,8 @@ function xmldb_enrol_imsenterprise_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011013000, 'enrol', 'imsenterprise');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
index 23effc5..536eebd 100644 (file)
@@ -36,5 +36,8 @@ function xmldb_enrol_mnet_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010071701, 'enrol', 'mnet');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index e84df62..61d30a1 100644 (file)
@@ -59,6 +59,8 @@ function xmldb_enrol_paypal_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010071500, 'enrol', 'paypal');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
index 5165f05..4de8809 100644 (file)
@@ -43,5 +43,8 @@ function xmldb_filter_mediaplugin_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011030900, 'filter', 'mediaplugin');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index db04601..b9f7497 100644 (file)
@@ -38,5 +38,8 @@ function xmldb_filter_tex_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011031301, 'filter', 'tex');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 271fb12..cce112e 100644 (file)
@@ -6634,6 +6634,9 @@ FROM
         upgrade_main_savepoint(true, 2011062400.03);
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 4a78a22..caa6d35 100644 (file)
@@ -47,6 +47,9 @@ function xmldb_message_email_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2008072401, 'message', 'email');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 9de7f2a..480df58 100644 (file)
@@ -47,6 +47,9 @@ function xmldb_message_jabber_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2008072401, 'message', 'jabber');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 1a26635..6cecfbc 100644 (file)
@@ -47,6 +47,9 @@ function xmldb_message_popup_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2008072401, 'message', 'popup');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 2841111..4136a76 100644 (file)
@@ -154,6 +154,9 @@ function xmldb_assignment_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2009042001, 'assignment');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 7dbeb0b..c775091 100644 (file)
@@ -99,6 +99,10 @@ function xmldb_chat_upgrade($oldversion) {
     /// chat savepoint reached
         upgrade_mod_savepoint(true, 2010050102, 'chat');
     }
+
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 2d50f27..da14ee4 100644 (file)
@@ -68,6 +68,9 @@ function xmldb_choice_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2010101300, 'choice');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 9e06d45..491d30d 100644 (file)
@@ -338,6 +338,9 @@ function xmldb_data_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011052300, 'data');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 1f3ecbc..b0a6fcf 100644 (file)
@@ -304,6 +304,10 @@ function xmldb_feedback_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2010102300, 'feedback');
     }
     
+
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 3ea086f..a0d64ac 100644 (file)
@@ -51,6 +51,8 @@ function xmldb_folder_upgrade($oldversion) {
 
     $dbman = $DB->get_manager();
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
index 5f9a0db..1ba8139 100644 (file)
@@ -338,6 +338,9 @@ function xmldb_forum_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011052300, 'forum');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index b3677de..7257c67 100644 (file)
@@ -349,6 +349,9 @@ function xmldb_glossary_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011052300, 'glossary');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 9a73b4e..47a4b00 100644 (file)
@@ -31,6 +31,8 @@ function xmldb_imscp_upgrade($oldversion) {
 
     $dbman = $DB->get_manager();
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
index 8bc2110..fce86e5 100644 (file)
@@ -82,6 +82,9 @@ function xmldb_label_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2009042201, 'label');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 8de5538..877dfaa 100644 (file)
@@ -289,6 +289,9 @@ function xmldb_lesson_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2010121400, 'lesson');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 8a9eb0b..cec60f6 100644 (file)
@@ -52,7 +52,8 @@ function xmldb_page_upgrade($oldversion) {
 
     $dbman = $DB->get_manager();
 
-
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
index 2bebe24..7830630 100644 (file)
@@ -1118,6 +1118,9 @@ function xmldb_quiz_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011051229, 'quiz');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 3f49083..fede5ac 100644 (file)
@@ -223,5 +223,8 @@ function xmldb_quiz_overview_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011021600, 'quiz', 'overview');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index a785346..4b254dd 100644 (file)
@@ -394,6 +394,9 @@ function xmldb_quiz_statistics_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011062600, 'quiz', 'statistics');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 00e7464..b1831a1 100644 (file)
@@ -262,5 +262,8 @@ function xmldb_resource_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011022700, 'resource');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 421b910..84d51f2 100644 (file)
@@ -535,6 +535,9 @@ function xmldb_scorm_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011011400, 'scorm');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 5223463..b9d06a2 100644 (file)
@@ -54,6 +54,9 @@ function xmldb_survey_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2009042002, 'survey');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 6ba34a3..8c995bf 100644 (file)
@@ -51,6 +51,8 @@ function xmldb_url_upgrade($oldversion) {
 
     $dbman = $DB->get_manager();
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
 
     return true;
 }
index f56865c..63a1d2f 100644 (file)
@@ -370,5 +370,8 @@ function xmldb_wiki_upgrade($oldversion) {
         //upgrade_mod_savepoint(true, 2011060300, 'wiki');
     //}
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index df614c9..1d7ebae 100644 (file)
@@ -308,5 +308,8 @@ function xmldb_workshop_upgrade($oldversion) {
         upgrade_mod_savepoint(true, 2011021100, 'workshop');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 7455f58..0626d93 100644 (file)
@@ -49,5 +49,8 @@ function xmldb_workshopform_accumulative_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010091700, 'workshopform', 'accumulative');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index f1c703d..82402d7 100644 (file)
@@ -49,5 +49,8 @@ function xmldb_workshopform_comments_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010091700, 'workshopform', 'comments');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 59ab311..553cc73 100644 (file)
@@ -59,5 +59,8 @@ function xmldb_workshopform_numerrors_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010091700, 'workshopform', 'numerrors');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index fbba54f..ac69e2f 100644 (file)
@@ -60,5 +60,8 @@ function xmldb_workshopform_rubric_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2010091700, 'workshopform', 'rubric');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 40b228f..be51863 100644 (file)
@@ -227,6 +227,9 @@ function xmldb_qtype_calculated_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011051900, 'qtype', 'calculated');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index f4a91b6..e74b8ea 100644 (file)
@@ -87,5 +87,8 @@ function xmldb_qtype_essay_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011060300, 'qtype', 'essay');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index a5769d2..fa89bf3 100644 (file)
@@ -207,5 +207,8 @@ function xmldb_qtype_match_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011011306, 'qtype', 'match');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 24959cb..cc832b9 100644 (file)
@@ -56,5 +56,8 @@ function xmldb_qtype_multianswer_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2008050800, 'qtype', 'multianswer');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index faf5c48..2345bc8 100644 (file)
@@ -148,5 +148,8 @@ function xmldb_qtype_multichoice_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011011200, 'qtype', 'multichoice');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
index 5f61c67..291b6fe 100644 (file)
@@ -223,6 +223,9 @@ function xmldb_qtype_numerical_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011042602, 'qtype', 'numerical');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
 
index 16b174c..e263195 100644 (file)
@@ -60,5 +60,8 @@ function xmldb_theme_formal_white_upgrade($oldversion) {
         upgrade_plugin_savepoint(true, 2011061301, 'theme', 'formal_white');
     }
 
+    // Moodle v2.1.0 release upgrade line
+    // Put any upgrade step following this
+
     return true;
 }
\ No newline at end of file