mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Removed fullname and search fields from modules table. Fullname is now
derived from the string 'modulename' in the lang files for each module.
This commit is contained in:
parent
d4dec01c69
commit
7ea53a1fb1
@ -129,7 +129,6 @@ CREATE TABLE `log_display` (
|
||||
CREATE TABLE `modules` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`name` varchar(20) NOT NULL default '',
|
||||
`fullname` varchar(255) NOT NULL default '',
|
||||
`version` int(10) NOT NULL default '0',
|
||||
`cron` int(10) unsigned NOT NULL default '0',
|
||||
`lastcron` int(10) unsigned NOT NULL default '0',
|
||||
|
@ -5,10 +5,8 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Assignment";
|
||||
$module->version = 20020801;
|
||||
$module->cron = 60;
|
||||
$module->search = "";
|
||||
|
||||
function assignment_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
@ -5,10 +5,8 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Choice";
|
||||
$module->version = 20011110;
|
||||
$module->cron = 0;
|
||||
$module->search = "";
|
||||
|
||||
function choice_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
@ -5,10 +5,8 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Forum";
|
||||
$module->version = 2002080100;
|
||||
$module->cron = 60;
|
||||
$module->search = "";
|
||||
|
||||
function forum_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
@ -5,10 +5,8 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Journal";
|
||||
$module->version = 200208010;
|
||||
$module->cron = 60;
|
||||
$module->search = "";
|
||||
|
||||
function journal_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
@ -5,10 +5,8 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->fullname = "Survey";
|
||||
$module->version = 20020727;
|
||||
$module->cron = 0;
|
||||
$module->search = "";
|
||||
|
||||
function survey_upgrade($oldversion) {
|
||||
// This function does anything necessary to upgrade
|
||||
|
@ -17,7 +17,7 @@
|
||||
// If there's something it cannot do itself, it
|
||||
// will tell you what you need to do.
|
||||
|
||||
$version = 2002073100;
|
||||
$version = 2002080200;
|
||||
|
||||
function upgrade_moodle($oldversion=0) {
|
||||
|
||||
@ -37,6 +37,11 @@ function upgrade_moodle($oldversion=0) {
|
||||
execute_sql("DELETE FROM `modules` WHERE `name` = 'chat' ");
|
||||
}
|
||||
|
||||
if ($oldversion < 2002080200) {
|
||||
execute_sql(" ALTER TABLE `modules` DROP `fullname` ");
|
||||
execute_sql(" ALTER TABLE `modules` DROP `search` ");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user