forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New upgrade.php file added for this module. MDL-7214
- Loading branch information
stronk7
committed
Oct 26, 2006
1 parent
cff74cb
commit d7a7184
Showing
16 changed files
with
608 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the activity_modules block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_activity_modules_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the admin block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_admin_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the calendar_month block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_calendar_month_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the calendar_upcoming block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_calendar_upcoming_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the course_list block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_course_list_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the course_summary block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_course_summary_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_blocks_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the news_items block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_news_items_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the online_users block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_online_users_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php //$Id$ | ||
|
||
// This file keeps track of upgrades to | ||
// the participants block | ||
// | ||
// 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. | ||
// | ||
// The commands in here will all be database-neutral, | ||
// using the functions defined in lib/ddllib.php | ||
|
||
function xmldb_block_participants_upgrade($oldversion=0) { | ||
|
||
global $CFG, $THEME, $db; | ||
|
||
$result = true; | ||
|
||
/// And upgrade begins here. For each one, you'll need one | ||
/// block of code similar to the next one. Please, delete | ||
/// this comment lines once this file start handling proper | ||
/// upgrade code. | ||
|
||
/// if ($result && $oldversion < YYYYMMDD00) { //New version in version.php | ||
/// $result = result of "/lib/ddllib.php" function calls | ||
/// } | ||
|
||
return $result; | ||
} | ||
|
||
?> |
Oops, something went wrong.