Skip to content

Commit

Permalink
MDL-28169 Installation Added 2.1 upgrade (idiot proof) lines to upgra…
Browse files Browse the repository at this point in the history
…de scripts.
  • Loading branch information
Aparup Banerjee committed Jul 7, 2011
1 parent 81f8e0f commit c5a8abf
Show file tree
Hide file tree
Showing 48 changed files with 139 additions and 1 deletion.
3 changes: 3 additions & 0 deletions auth/manual/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions auth/mnet/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions blocks/community/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions blocks/html/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions blocks/navigation/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions blocks/settings/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions enrol/authorize/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions enrol/imsenterprise/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 3 additions & 0 deletions enrol/mnet/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions enrol/paypal/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions filter/mediaplugin/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions filter/tex/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions lib/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6634,6 +6634,9 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2011062400.03);
}

// Moodle v2.1.0 release upgrade line
// Put any upgrade step following this

return true;
}

Expand Down
3 changes: 3 additions & 0 deletions message/output/email/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions message/output/jabber/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions message/output/popup/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions mod/assignment/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 4 additions & 0 deletions mod/chat/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions mod/choice/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions mod/data/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
4 changes: 4 additions & 0 deletions mod/feedback/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions mod/folder/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/forum/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions mod/glossary/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions mod/imscp/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/label/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions mod/lesson/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 2 additions & 1 deletion mod/page/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/quiz/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

3 changes: 3 additions & 0 deletions mod/quiz/report/overview/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/quiz/report/statistics/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

3 changes: 3 additions & 0 deletions mod/resource/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/scorm/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions mod/survey/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions mod/url/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/wiki/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/workshop/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/workshop/form/accumulative/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/workshop/form/comments/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/workshop/form/numerrors/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 3 additions & 0 deletions mod/workshop/form/rubric/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading

0 comments on commit c5a8abf

Please sign in to comment.