mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Use type numeric(5,2) to store value 100.00
This commit is contained in:
parent
1b6fe5003a
commit
5a8c647613
@ -1086,6 +1086,11 @@ function main_upgrade($oldversion=0) {
|
||||
table_column('user', '', 'trackforums', 'int', '4', 'unsigned', '0', 'not null', 'autosubscribe');
|
||||
}
|
||||
|
||||
if ($oldversion < 2005051500) { // Add user tracking prefs field.
|
||||
table_column('grade_category', 'weight', 'weight', 'numeric(5,2)', '', '', '0.00', '', '');
|
||||
}
|
||||
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ CREATE TABLE prefix_grade_category (
|
||||
drop_x_lowest integer NOT NULL default '0',
|
||||
bonus_points integer NOT NULL default '0',
|
||||
hidden integer NOT NULL default '0',
|
||||
weight decimal(4,2) default '0.00'
|
||||
weight decimal(5,2) default '0.00'
|
||||
);
|
||||
|
||||
CREATE INDEX prefix_grade_category_courseid_idx ON prefix_grade_category (courseid);
|
||||
|
@ -6,7 +6,7 @@
|
||||
// This is compared against the values stored in the database to determine
|
||||
// whether upgrades should be performed (see lib/db/*.php)
|
||||
|
||||
$version = 2005050600; // YYYYMMDD = date
|
||||
$version = 2005051500; // YYYYMMDD = date
|
||||
// XY = increments within a single day
|
||||
|
||||
$release = '1.5 ALPHA'; // Human-friendly version name
|
||||
|
Loading…
x
Reference in New Issue
Block a user