Skip to content

Commit

Permalink
Deprecating old "upgrade" files. MDL-7214
Browse files Browse the repository at this point in the history
Merged from MOODLE_17_STABLE
  • Loading branch information
stronk7 committed Oct 26, 2006
1 parent 276916a commit 3aac1dc
Show file tree
Hide file tree
Showing 46 changed files with 313 additions and 246 deletions.
20 changes: 5 additions & 15 deletions backup/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand Down Expand Up @@ -164,6 +153,7 @@ function backup_upgrade($oldversion=0) {
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;
Expand Down
20 changes: 5 additions & 15 deletions blocks/activity_modules/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
<?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

Expand All @@ -28,6 +16,8 @@ function activity_modules_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/admin/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function admin_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/calendar_month/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function calendar_month_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/calendar_upcoming/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function calendar_upcoming_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/course_list/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function course_list_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/course_summary/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function course_summary_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand Down Expand Up @@ -161,6 +150,8 @@ function blocks_upgrade($oldversion=0) {
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;
}
Expand Down
21 changes: 6 additions & 15 deletions blocks/news_items/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function news_items_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/online_users/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function online_users_upgrade($oldversion=0) {
$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;
}
21 changes: 6 additions & 15 deletions blocks/participants/db/mysql.php
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
<?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

Expand All @@ -28,6 +17,8 @@ function participants_upgrade($oldversion=0) {
$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;
}
Loading

0 comments on commit 3aac1dc

Please sign in to comment.