mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Added a new field to cache "old" course_module visibility when
the whole module is disabled (see bug 5021)
This commit is contained in:
parent
03c9562b40
commit
12ef2c40d9
@ -1776,6 +1776,10 @@ function main_upgrade($oldversion=0) {
|
||||
table_column('cache_text','formattedtext','formattedtext','longblob','','','','not null');
|
||||
}
|
||||
|
||||
if ($oldversion < 2006041100) {
|
||||
table_column('course_modules','','visibleold','integer','1','unsigned','1','not null', 'visible');
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -159,6 +159,7 @@ CREATE TABLE `prefix_course_modules` (
|
||||
`score` tinyint(4) NOT NULL default '0',
|
||||
`indent` int(5) unsigned NOT NULL default '0',
|
||||
`visible` tinyint(1) NOT NULL default '1',
|
||||
`visibleold` tinyint(1) NOT NULL default '1',
|
||||
`groupmode` tinyint(4) NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `id` (`id`),
|
||||
|
@ -1488,6 +1488,10 @@ function main_upgrade($oldversion=0) {
|
||||
execute_sql(" CREATE INDEX {$CFG->prefix}course_sections_coursesection_idx ON {$CFG->prefix}course_sections (course,section) ", false);
|
||||
}
|
||||
|
||||
if ($oldversion < 2006041100) {
|
||||
table_column('course_modules','','visibleold','integer','1','unsigned','1','not null', 'visible');
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -104,6 +104,7 @@ CREATE TABLE prefix_course_modules (
|
||||
score integer NOT NULL default '0',
|
||||
indent integer NOT NULL default '0',
|
||||
visible integer NOT NULL default '1',
|
||||
visibleold integer NOT NULL default '1',
|
||||
groupmode integer NOT NULL default '0'
|
||||
);
|
||||
|
||||
|
@ -6,9 +6,9 @@
|
||||
// This is compared against the values stored in the database to determine
|
||||
// whether upgrades should be performed (see lib/db/*.php)
|
||||
|
||||
$version = 2006041001; // YYYYMMDD = date
|
||||
$version = 2006041100; // YYYYMMDD = date
|
||||
// XY = increments within a single day
|
||||
|
||||
$release = '1.6 Beta 2'; // Human-friendly version name
|
||||
$release = '1.6 Beta 3'; // Human-friendly version name
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user