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:
martin 2002-08-02 17:42:59 +00:00
parent d4dec01c69
commit 7ea53a1fb1
7 changed files with 6 additions and 12 deletions

View File

@ -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',

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;
}