New feature: hide/show topics!

This commit is contained in:
moodler 2003-05-04 07:59:46 +00:00
parent 81ed361792
commit 7d99d6959e
8 changed files with 105 additions and 44 deletions

View file

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

View file

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

View file

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

View file

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