Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed fullname and search fields from modules table. Fullname is now

derived from the string 'modulename' in the lang files for each module.
  • Loading branch information...
commit 7ea53a1fb1dff526c52e5e2b5f80ce14d0d7932d 1 parent d4dec01
martin authored
View
1  lib/db/mysql.sql
@@ -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
2  mod/assignment/version.php
@@ -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
2  mod/choice/version.php
@@ -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
2  mod/forum/version.php
@@ -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
2  mod/journal/version.php
@@ -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
2  mod/survey/version.php
@@ -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
7 version.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.