]> git.mjollnir.org Git - moodle.git/commitdiff
Addition of the overallocation field to the workshop table.
authorrkingdon <rkingdon>
Thu, 25 Sep 2003 19:14:14 +0000 (19:14 +0000)
committerrkingdon <rkingdon>
Thu, 25 Sep 2003 19:14:14 +0000 (19:14 +0000)
mod/workshop/backuplib.php
mod/workshop/db/oci8po.sql
mod/workshop/db/postgres7.sql
mod/workshop/restorelib.php

index 836671d4fb7f4b15fe87865494c811d472cafdca..2674c608aee4205a9fced4b88018bae1c24c79d2 100644 (file)
@@ -67,6 +67,7 @@
                 fwrite ($bf,full_tag("GRADE",4,false,$workshop->grade));
                 fwrite ($bf,full_tag("NTASSESSMENTS",4,false,$workshop->ntassessments));
                 fwrite ($bf,full_tag("NSASSESSMENTS",4,false,$workshop->nsassessments));
+                fwrite ($bf,full_tag("OVERALLOCATION",4,false,$workshop->nsassessments));
                 fwrite ($bf,full_tag("TIMEMODIFIED",4,false,$workshop->timemodified));
                 fwrite ($bf,full_tag("MERGEGRADES",4,false,$workshop->mergegrades));
                 fwrite ($bf,full_tag("TEACHERWEIGHT",4,false,$workshop->teacherweight));
index 720e581ff0b57db9bf72de2b98e398875268e065..0bc6a4607bd71b623a0910d619b254da6083e64e 100755 (executable)
@@ -21,7 +21,8 @@ CREATE TABLE prefix_workshop (
   deadline number(10)  default '0' not null,\r
   grade number(10) default '0' not null,\r
   ntassessments number(3)  default '0' not null,\r
-  nsassessments number(3)  default '0' not null,\r
+  nsassessments number(3)  default '0' not null,
+  overallocation number(3)  default '0' not null,
   timemodified number(10)  default '0' not null,\r
   mergegrades number(3)  default '0' not null,\r
   teacherweight number(3)  default '5' NOT NULL,\r
index 0448a62a30e156c0e8a19ddcb3fff04f6cf9f0ae..14e2d751581889da619158cb40e9fe93b91d0207 100644 (file)
@@ -21,6 +21,7 @@ CREATE TABLE prefix_workshop (
   grade INT8 NOT NULL default '0',
   ntassessments INT  NOT NULL default '0',
   nsassessments INT  NOT NULL default '0',
+  overallocation INT  NOT NULL default '0',
   timemodified INT8  NOT NULL default '0',
   mergegrades INT  NOT NULL default '0',
   teacherweight INT  NOT NULL default '5',
index ba341b9bd84ef5c02dbc46e9d7a19ebaa49dc535..33b072c90ccdfe5c1ade9100e837ccc5f25b2ba0 100644 (file)
@@ -70,6 +70,7 @@
             $workshop->grade = backup_todb($info['MOD']['#']['GRADE']['0']['#']);
             $workshop->ntassessments = backup_todb($info['MOD']['#']['NTASSESSMENTS']['0']['#']);
             $workshop->nsassessments = backup_todb($info['MOD']['#']['NSASSESSMENTS']['0']['#']);
+            $workshop->overallocation = backup_todb($info['MOD']['#']['OVERALLOCATION']['0']['#']);
             $workshop->timemodified = backup_todb($info['MOD']['#']['TIMEMODIFIED']['0']['#']);
             $workshop->mergegrades = backup_todb($info['MOD']['#']['MERGEGRADES']['0']['#']);
             $workshop->teacherweight = backup_todb($info['MOD']['#']['TEACHERWEIGHT']['0']['#']);