mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
New feature: hide/show topics!
This commit is contained in:
parent
81ed361792
commit
7d99d6959e
8 changed files with 105 additions and 44 deletions
|
@ -375,6 +375,10 @@ function main_upgrade($oldversion=0) {
|
|||
) TYPE=MyISAM COMMENT='Stores info about how to display the course'");
|
||||
}
|
||||
|
||||
if ($oldversion < 2003050400) {
|
||||
table_column("course_sections", "", "visible", "integer", "1", "unsigned", "1", "", "");
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
|
|
@ -110,6 +110,7 @@ CREATE TABLE `prefix_course_sections` (
|
|||
`section` int(10) unsigned NOT NULL default '0',
|
||||
`summary` text NOT NULL,
|
||||
`sequence` varchar(255) NOT NULL default '',
|
||||
`visible` tinyint(1) NOT NULL default '1',
|
||||
PRIMARY KEY (`id`)
|
||||
) TYPE=MyISAM;
|
||||
# --------------------------------------------------------
|
||||
|
|
|
@ -137,6 +137,10 @@ function main_upgrade($oldversion=0) {
|
|||
|
||||
execute_sql("CREATE INDEX {$CFG->prefix}course_display_courseuserid_idx ON {$CFG->prefix}course_display (course,userid)");
|
||||
}
|
||||
|
||||
if ($oldversion < 2003050400) {
|
||||
table_column("course_sections", "", "visible", "integer", "1", "unsigned", "1", "", "");
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -58,7 +58,8 @@ CREATE TABLE prefix_course_sections (
|
|||
course integer NOT NULL default '0',
|
||||
section integer NOT NULL default '0',
|
||||
summary text NOT NULL default '',
|
||||
sequence varchar(255) NOT NULL default ''
|
||||
sequence varchar(255) NOT NULL default '',
|
||||
visible integer NOT NULL default '1'
|
||||
);
|
||||
|
||||
CREATE TABLE prefix_log (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue