Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit f899b4a6d3b67ee605fdbd2bdd9cba9ff7549ccb 1 parent 5cdb11e
authored August 02, 2005
4  lib/db/postgres7.php
@@ -1014,8 +1014,8 @@ function main_upgrade($oldversion=0) {
1014 1014
                               id SERIAL PRIMARY KEY,
1015 1015
                               courseid integer NOT NULL default '0',
1016 1016
                               letter varchar(8) NOT NULL default 'NA',
1017  
-                              grade_high decimal(4,2) NOT NULL default '100.00',
1018  
-                              grade_low decimal(4,2) NOT NULL default '0.00'
  1017
+                              grade_high decimal(6,2) NOT NULL default '100.00',
  1018
+                              grade_low decimal(6,2) NOT NULL default '0.00'
1019 1019
                             );");
1020 1020
 
1021 1021
         modify_database('',"CREATE INDEX prefix_grade_letter_courseid_idx ON prefix_grade_letter (courseid);");
4  lib/db/postgres7.sql
@@ -174,8 +174,8 @@ CREATE TABLE prefix_grade_letter (
174 174
   id SERIAL PRIMARY KEY,
175 175
   courseid integer NOT NULL default '0',
176 176
   letter varchar(8) NOT NULL default 'NA',
177  
-  grade_high decimal(4,2) NOT NULL default '100.00',
178  
-  grade_low decimal(4,2) NOT NULL default '0.00'
  177
+  grade_high decimal(6,2) NOT NULL default '100.00',
  178
+  grade_low decimal(6,2) NOT NULL default '0.00'
179 179
 );
180 180
 
181 181
 CREATE INDEX prefix_grade_letter_courseid_idx ON prefix_grade_letter (courseid);

0 notes on commit f899b4a

Please sign in to comment.
Something went wrong with that request. Please try again.