mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 11:56:40 +02:00
Renamed "weeks_topics" to "section_links"
This commit is contained in:
parent
c9c8984582
commit
d208d07b7f
5 changed files with 139 additions and 0 deletions
33
blocks/section_links/db/mysql.php
Normal file
33
blocks/section_links/db/mysql.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?PHP //$Id$
|
||||
//
|
||||
// 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
|
||||
//
|
||||
// This file is tailored to MySQL
|
||||
|
||||
function section_links_upgrade($oldversion=0) {
|
||||
|
||||
global $CFG;
|
||||
|
||||
$result = true;
|
||||
|
||||
if ($oldversion < 2004050500 and $result) {
|
||||
$result = true; //Nothing to do
|
||||
}
|
||||
|
||||
//Finally, return result
|
||||
return $result;
|
||||
}
|
0
blocks/section_links/db/mysql.sql
Normal file
0
blocks/section_links/db/mysql.sql
Normal file
33
blocks/section_links/db/postgres7.php
Normal file
33
blocks/section_links/db/postgres7.php
Normal file
|
@ -0,0 +1,33 @@
|
|||
<?PHP //$Id$
|
||||
//
|
||||
// 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
|
||||
//
|
||||
// This file is tailored to PostgreSQL
|
||||
|
||||
function section_links_upgrade($oldversion=0) {
|
||||
|
||||
global $CFG;
|
||||
|
||||
$result = true;
|
||||
|
||||
if ($oldversion < 2004050500 and $result) {
|
||||
$result = true; //Nothing to do
|
||||
}
|
||||
|
||||
//Finally, return result
|
||||
return $result;
|
||||
}
|
0
blocks/section_links/db/postgres7.sql
Normal file
0
blocks/section_links/db/postgres7.sql
Normal file
Loading…
Add table
Add a link
Reference in a new issue