mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Forum grades can now be numerical as well (like the other modules).
If so, grades in the gradebook are printed as proper numbers and contribute to the total of the course.
This commit is contained in:
parent
f2f564066b
commit
d6bdd9d5e9
7 changed files with 48 additions and 17 deletions
|
@ -70,6 +70,11 @@ function forum_upgrade($oldversion) {
|
|||
table_column("forum", "", "assesstimestart", "integer", "10", "unsigned", "0", "", "assessed");
|
||||
table_column("forum", "", "assesstimefinish", "integer", "10", "unsigned", "0", "", "assesstimestart");
|
||||
}
|
||||
|
||||
if ($oldversion < 2003082502) {
|
||||
table_column("forum", "scale", "scale", "integer", "10", "", "0");
|
||||
execute_sql("UPDATE {$CFG->prefix}forum SET scale = (- scale)");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ CREATE TABLE prefix_forum (
|
|||
assessed int(10) unsigned NOT NULL default '0',
|
||||
assesstimestart int(10) unsigned NOT NULL default '0',
|
||||
assesstimefinish int(10) unsigned NOT NULL default '0',
|
||||
scale int(10) unsigned NOT NULL default '0',
|
||||
scale int(10) NOT NULL default '0',
|
||||
forcesubscribe tinyint(1) unsigned NOT NULL default '0',
|
||||
timemodified int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (id),
|
||||
|
|
|
@ -15,6 +15,10 @@ function forum_upgrade($oldversion) {
|
|||
table_column("forum", "", "assesstimefinish", "integer", "10", "unsigned", "0", "", "assesstimestart");
|
||||
}
|
||||
|
||||
if ($oldversion < 2003082502) {
|
||||
execute_sql("UPDATE {$CFG->prefix}forum SET scale = (- scale)");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue