Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed postgres structure problem as in http://moodle.org/mod/forum/di…

  • Loading branch information...
commit f899b4a6d3b67ee605fdbd2bdd9cba9ff7549ccb 1 parent 5cdb11e
patrickslee authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/db/postgres7.php
  2. +2 −2 lib/db/postgres7.sql
View
4 lib/db/postgres7.php
@@ -1014,8 +1014,8 @@ function main_upgrade($oldversion=0) {
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
letter varchar(8) NOT NULL default 'NA',
- grade_high decimal(4,2) NOT NULL default '100.00',
- grade_low decimal(4,2) NOT NULL default '0.00'
+ grade_high decimal(6,2) NOT NULL default '100.00',
+ grade_low decimal(6,2) NOT NULL default '0.00'
);");
modify_database('',"CREATE INDEX prefix_grade_letter_courseid_idx ON prefix_grade_letter (courseid);");
View
4 lib/db/postgres7.sql
@@ -174,8 +174,8 @@ CREATE TABLE prefix_grade_letter (
id SERIAL PRIMARY KEY,
courseid integer NOT NULL default '0',
letter varchar(8) NOT NULL default 'NA',
- grade_high decimal(4,2) NOT NULL default '100.00',
- grade_low decimal(4,2) NOT NULL default '0.00'
+ grade_high decimal(6,2) NOT NULL default '100.00',
+ grade_low decimal(6,2) NOT NULL default '0.00'
);
CREATE INDEX prefix_grade_letter_courseid_idx ON prefix_grade_letter (courseid);
Please sign in to comment.
Something went wrong with that request. Please try again.