]> git.mjollnir.org Git - moodle.git/commitdiff
Removed fullname and search fields from modules table. Fullname is now
authormartin <martin>
Fri, 2 Aug 2002 17:42:59 +0000 (17:42 +0000)
committermartin <martin>
Fri, 2 Aug 2002 17:42:59 +0000 (17:42 +0000)
derived from the string 'modulename' in the lang files for each module.

lib/db/mysql.sql
mod/assignment/version.php
mod/choice/version.php
mod/forum/version.php
mod/journal/version.php
mod/survey/version.php
version.php

index ce8cf35e91020ea8f7cdddd2a236cc37f9a670de..c8728dc693c02cbbaa4409aaccebb0697d026f89 100644 (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',
index afa4c246c1c5153b27c79d38a4bcd4f0bb256d06..31d8d73e862c763d874e7a61b732f43fbb7b3ea7 100644 (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
index 31e1f4fa5661c5f75ee9064c79c5fcfc31e8aff3..956260e42c15cac61f955b0435cc2b4d235dda4f 100644 (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
index d71ff35ef1c41b0055978dba52a48e6d8d221fd1..e9604b8bf4f8e12d800004d8e406c591e8afd8e2 100644 (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
index 10bcf6e01f95a32baef3fea1d9663f635b9ca4c8..77fc3150418e604a721120a55aad51cfac5d088e 100644 (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
index 8369de85151b0accb4e37672a2b9bf920fdee6fc..2ad81cbec6911668978bbaf75ce2d356362bea3a 100644 (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
index 69c86ff58e6b2486d6dcdba8b968c64e111746f6..5fadb361eca6d13b84c9354fc051c9afce0c80fd 100644 (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;
 }