Permalink
Browse files

Addition of the overallocation field to the workshop table.

  • Loading branch information...
1 parent eab709a commit 5c32d7258d37be3ae359fbcfe6c2a5e0e60fe17b rkingdon committed Sep 25, 2003
Showing with 5 additions and 1 deletion.
  1. +1 −0 mod/workshop/backuplib.php
  2. +2 −1 mod/workshop/db/oci8po.sql
  3. +1 −0 mod/workshop/db/postgres7.sql
  4. +1 −0 mod/workshop/restorelib.php
@@ -67,6 +67,7 @@ function workshop_backup_mods($bf,$preferences) {
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));
@@ -21,7 +21,8 @@ CREATE TABLE prefix_workshop (
deadline number(10) default '0' not null,
grade number(10) default '0' not null,
ntassessments number(3) default '0' not null,
- nsassessments number(3) default '0' not null,
+ nsassessments number(3) default '0' not null,
+ overallocation number(3) default '0' not null,
timemodified number(10) default '0' not null,
mergegrades number(3) default '0' not null,
teacherweight number(3) default '5' NOT NULL,
@@ -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',
@@ -70,6 +70,7 @@ function workshop_restore_mods($mod,$restore) {
$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']['#']);

0 comments on commit 5c32d72

Please sign in to comment.