Browse files

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

  • Loading branch information...
1 parent 3a8f270 commit c87139dba87cd9acfbfa9525aa0e7b05162b1d2e patrickslee committed Aug 2, 2005
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
@@ -177,8 +177,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);

0 comments on commit c87139d

Please sign in to comment.