NEW FEATURE: Activity Link allows the teacher to display a link to another activity, which is in the same course,

at the end of the Lesson.
This commit is contained in:
michaelpenne 2005-11-07 19:56:08 +00:00
parent 6db0b948cc
commit 114f47a79e
7 changed files with 71 additions and 1 deletions

View file

@ -212,6 +212,10 @@ function lesson_upgrade($oldversion) {
table_column('lesson', '', 'mediaheight', 'int', '10', 'unsigned', '100', 'not null', 'mediafile');
table_column('lesson', '', 'mediawidth', 'int', '10', 'unsigned', '650', 'not null', 'mediafile');
}
if ($oldversion < 2005110200) {
table_column('lesson', '', 'activitylink', 'int', '10', 'unsigned', '0', 'not null', 'tree');
}
return true;
}

View file

@ -28,6 +28,7 @@ CREATE TABLE `prefix_lesson` (
`maxtime` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`retake` int(3) unsigned NOT NULL default '1',
`tree` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
`activitylink` INT(10) UNSIGNED NOT NULL DEFAULT '0',
`mediafile` varchar(255) NOT NULL default '',
`mediaheight` INT(10) UNSIGNED NOT NULL DEFAULT '100',
`mediawidth` INT(10) UNSIGNED NOT NULL DEFAULT '650',

View file

@ -294,6 +294,10 @@ function lesson_upgrade($oldversion) {
table_column('lesson', '', 'mediawidth', 'INT', '10', 'unsigned', '650', 'not null', 'mediafile');
}
if ($oldversion < 2005110200) {
table_column('lesson', '', 'activitylink', 'INT', '10', 'unsigned', '0', 'not null', 'tree');
}
return true;
}

View file

@ -22,6 +22,7 @@ CREATE TABLE prefix_lesson (
maxtime INT8 NOT NULL DEFAULT '0',
retake INT NOT NULL default '1',
tree INT NOT NULL DEFAULT '0',
activitylink INT8 NOT NULL default '0',
mediafile varchar(255) NOT NULL default '',
mediaheight INT NOT NULL DEFAULT '100',
mediawidth INT NOT NULL DEFAULT '650',